blob: 47d4fd3f30230c920e94e5b4638ccacd7c0a9590 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
.help tbcrename Aug91 noao.digiphot.ptools
.ih
NAME
tbcrename -- rename selected columns in a list of table
.ih
USAGE
tbcrename tables columns names
.ih
PARAMETERS
.ls table
The list of input tables files.
.le
.ls columns
The list of columns separated by commas whose names are to be changed.
.le
.ls names
The list of new column names separated by commas.
.le
.ih
DESCRIPTION
TBCRENAME takes a list of ST tables \fItables\fR and changes the names
of selected columns \fIcolumns\fR to the names specified in \fInames\fR.
If the input file is not an ST table or the column does not exist
no action is taken. Otherwise the specified column is renamed.
.ih
EXAMPLES
1. For the list of ST tables in tablelist, rename the columns "MAG,MERR"
to "MAG[1],MERR[1]". Note the use of '\' to escape the pattern matching
meta-character '['.
.nf
pt> tbcrename @tablelist "MAG,MERR" "MAG\[1],MERR\[1]"
.fi
.ih
TIME REQUIREMENTS
.ih
BUGS
Since the contents of the ST table are altered the user must have
write permission on the table in order to run TBCRENAME.
.ih
SEE ALSO
.endhelp
|