| Class | Global |
| Name | file |
| Arguments | rename <file_name> <new_file_name> |
| delete <file_name> [... <file_nameN>] | |
| query <file_name> [... <file_nameN>] | |
| cat <file_name> [... <file_nameN>] | |
| print [/<search string>/] [(<fortran format>)] [NR] [<column no> ... <col no N>] <file_name> |
Allows access to standard operating system file manipulation commands.
The rename modifier renames the named file in the current directory to a new name.
The delete modifier deletes the named file(s) in the current directory.
The query modifier tests if the named files are present in the current directory.
The cat modifier sends the named file(s) in the current directory to the Sib-pair standard output.
The print modifier prints selected columns from the named file to the Sib-pair standard output. If no columns are selected, then this has the same effect as cat. If the NR keyword is present, then the line is prefixed by the line number. If the first or second modifier keyword encountered is enclosed in brackets, this is taken to be a Fortran format statement to be used printing the columns. If the modifier is enclosed in forward slashes ("/"), this is taken to be a search string, so that only lines containing that string are printed. This may have to be protected by quotes.
The columns are read as strings, so the only allowable formats are X, I[<w>] for the line number, and A[<w>] for the actual data.
Example:
>> file delete bad.ped Deleted file "bad.ped". >> file print /ERROR:/ bad.out >> out cleanhash.out >> file print NR 2 5 hash.out >> out
See also:
| dir | file listing for current directory |
| pwd | print or change current directory |
| << (pwd) | Up to index | >> (clear) |