Can some one help in sorting the attached file.
I used cmd: sort -r jar1.txt -o sortedjar.txt , but it didnt work.
Thanks for your help in Advance.
Can some one help in sorting the attached file.
I used cmd: sort -r jar1.txt -o sortedjar.txt , but it didnt work.
Thanks for your help in Advance.
sort -r -o sortedjar.txt jar1.txt
this didnt work.
Sorry missed the "sort by size" requirement - see updated post
---------- Post updated at 11:13 AM ---------- Previous update was at 11:07 AM ----------
Note: directories come out at the bottom as the have "<DIR>" in the size column
No
sort -k 4d -o sortedjar.txt jar1.txt
this also didnt work, Can you attach the output and cmd.
Thanks in Advance.
---------- Post updated at 08:52 PM ---------- Previous update was at 08:33 PM ----------
I have removed those files come out at the bottom as the have "<DIR>" in the size column
but still cannot get.
I can confirm Chubler_XL's command is right. test fine on both linux and solaris system. it sorts by size which in column 4
Do you have other request?
sort -k 4d jar1.txt
Thanks chubler and rdcwayx.
I was trying in debian its not working. I just tried in Unix it worked.
I dont know why its not working the same command in debian
Thanks for your help