Friday, February 27, 2009

The rev command

rev command is used to print the lines of a file in reverse order.
i used it with cut to cut the last column of a file . I used it
because a column in the begining used special character in it

for eg:
Irregular line
"Buongiorno","BUSA, Inc",11222,"ALT",2325,22318.75
regular line
"Buongiorno","BUSA",11222,"ALT",2325,22318.75
the comma after BUSA gives wrong column

No comments: