filtering based on columns
Is there any way to filter the output of a command based on the values on the output columns. For example i execute du -h on directory with many files. Now I want to filter the output based on the size (i.e. M or G or K ). The filtered o/p should contain only M(megabytes) or G(gigabytes) and also all columns.
Is this what you are looking for?
du -h | grep "^.*[MG][[:space:]]\./"
Hope this helps.
Thanks a lost Druuna!! Cheers!! :)
You're welcome :)
|All times are GMT -5. The time now is 04:44 AM.|