Re: How to search for files that have fewer than n lines?

2009-12-31 Thread James Youngman
On Thu, Dec 31, 2009 at 10:05 PM, Peng Yu wrote: > I know I can used wc -l to get the number of lines in a file. Could > somebody let me know how to search for files that have fewer than n > lines? (n is a number) min=73 # or whatever minimum you like. find . -type f -print0 | xargs -r -0 wc -l /

How to search for files that have fewer than n lines?

2009-12-31 Thread Peng Yu
I know I can used wc -l to get the number of lines in a file. Could somebody let me know how to search for files that have fewer than n lines? (n is a number)

Listing all inodes on filesystem (without doing a stat() call).

2009-12-31 Thread Ray Van Dolson
I'm trying to generate a sorted list of inodes on my filesystem (so I can optimize a GFS2 backup workflow). The filesystem has >1 million inodes, so generating this list can take a little bit of time. I initially attempted to do this via Python, but all of its calls appear to be too high level an