home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] find images by size

On Thu, Jul 26, 2007 at 02:11:17PM -0400, Bruce Harding wrote:
> 
> Someone sent me this from another group. 
> 
> identify -format '%f: %wx%h\n' * | grep '[02-9][0-9][0-9]\|1[5-9][0-9]' | 
> cut -d ' ' -f 1
> 
> I'm unfamiliar with the command "cut" does it put my files in a directory or 
> file?  Is is cutting the large files from the rest?  If so where is the info 
> going?

it just cuts strings into fields.  the "-d ' '" part means "fields
separated by spaces", and the "-f 1" part means to print field one.

e.g.,

mort@socrates:~$ echo "this is a test" | cut -f 1 -d ' '
this
mort@socrates:~$ echo "this is a test" | cut -f 3 -d ' '
a


mh

-- 
Martin Hicks || mort [ at ] bork [ dot ] org || PGP/GnuPG: 0x4C7F2BEE