![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem in filtering the file | adityam | UNIX for Dummies Questions & Answers | 0 | 11-22-2007 04:37 AM |
| Help, filtering some info. from a file under "()" | varungupta | UNIX for Advanced & Expert Users | 10 | 09-11-2007 03:59 AM |
| command to find out total size of a specific file size (spread over the server) | abhinov | SUN Solaris | 3 | 08-08-2007 03:48 AM |
| Filtering multiple entries in a file | suman_jakkula | Shell Programming and Scripting | 2 | 08-22-2006 02:02 AM |
| Urgent: Filtering a File | HItesh | Shell Programming and Scripting | 5 | 05-11-2006 01:16 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
filtering by file size
Hi !
I wanted to know how can i filter files by "size range". like : getting all the files that are bigger than 100 byte and smaller than 200 byte ? I want to make it as a script... I noticed the unix command : find . -size +100c but i also want limit it's upper bounds. so something like : find . -size +100c -200c or find . -size +100c && -200c doesn't work... What can i do ? i also tried to use the "size" command on a file , but it doesn't return one value (the size in bytes). w8ing 4 your answers... |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
The -a allows you to specify multiple primaries:
find . -size +100c -a -size -200c -exec ls -ld {} \; but on HP-UX, it works without the -a also: |
|
#3
|
||||
|
||||
|
from the find man page ....
Quote:
|
||||
| Google The UNIX and Linux Forums |