Ok this is what I have done based on what schneidz said. Here I've cut all the columns:
Code:
cut -f 0- myfile Code:
sort -f '|' -k3 |
here is what i get when i run you cut command:
Code:
[schneidz@hyper ~]$ cat bahreini.txt Code:
[schneidz@hyper ~]$ cut -f 1 bahreini.txt | tee bahreini.1 |
Thanks schneidz but I can do this with awk too. Do you expect me to do that for 41 fields individually?!! I was looking for a simpler solution.
|
Did you try my suggestion? Assuming latest version of awk (4+) you could easily do multi-dimensional arrays on the fly and process everything in the END section.
|
All times are GMT -5. The time now is 01:37 PM. |