![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sorting problem.... | jarod004 | HP-UX | 4 | 06-25-2007 01:42 AM |
| sorting/arrangement problem | Abhishek Ghose | Shell Programming and Scripting | 7 | 05-25-2007 10:19 AM |
| Sorting/Filed Defining/Output problem | TiredOrangeCat | Shell Programming and Scripting | 1 | 02-12-2007 12:41 AM |
| Sorting problem "sort -k 16,29 sample.txt > output.txt" | ganapati | Shell Programming and Scripting | 3 | 08-01-2006 06:55 AM |
| Problem in sorting the file | vishnu_vaka | Shell Programming and Scripting | 1 | 12-04-2005 11:47 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Haiiiiiiiiii sorting problem in unix
Hai ,
In unix we are going to sort it out all the directories and files based on size of the file. For that we have to use this command ls –al | sort +4nr. If we are giving this command means it will show all the records in a descending order….when I am checking one file bytes its showing 96 bytes……But I checked inside that file its having so many sub files and sub directories.Its showing 10000 bytes like that. There is a mush difference between this..Now I waana sort out files based on actual size of all directories and files…. |
|
||||
|
Sorting problem
--------------------------------------------------------------------------------
Hai , In unix we are going to sort it out all the directories and files based on size of the file. For that we have to use this command ls –al | sort +4nr. If we are giving this command means it will show all the records in a descending order….when I am checking one file bytes its showing 96 bytes……But I checked inside that file its having so many sub files and sub directories.Its showing 10000 bytes like that. There is a mush difference between this..Now I waana sort out files based on actual size of all directories and files…. |
|
||||
|
Nope this is also giving the same result
Hai friend
This is also giving a same result what ever I used command ls -al | sort +4nr.......My problem is its not sorting out all the sub files and sub directories .When its sorting that file size is different and when I am entering in to that file that file size is different. That sorted file size is not a actual file size......................please help me friends............... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|