shell scripting
Hai,
can u help me in sorting a file. let a file has 5 fields, i have to sort it with respect to the 2nd field. can u tell me the command for this. thanks in advance..... |
This is the simple way of doing it:
If each field is a single word seperated by white space then then use sort -k2 <file> If you have spaces within the fields you need to change the field seperator and use the -t option to indicate what it is. |
thanks, I also found it thru man page
|
All times are GMT -5. The time now is 05:07 AM. |