Search Results

Search: Posts Made By: aldomenico
2,692
Posted By aldomenico
You may want to try this
Hi dsravan,
sed can work the entire file (it may take the test_jan2 as an input). So I don't see the need for it to be fed line by line (for loop). Also if using a loop, you would need to redirect...
3,385
Posted By aldomenico
Wrong order of arguments - try this
At least in SUSE, the sort command is like this:

sort [OPTIONS] ... [FILE]

you had the file before the options.

Try this instead (it worked for me):

sort -k 21 -o file_2 -r file_1
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy