grep & ls question

David Fleck david.fleck at mchsi.com
Tue Nov 18 18:12:20 PST 2003


On Tue, 18 Nov 2003, Marty Landman wrote:

> I have transferred over, via ftp a whole bunch of stuff. Some of the files
> got allocated but not transferred so I thought a convenient way to identify
> them would be grepping a list dir output. Here's a sample of what I get:
>
> Swami:: ls -Rlh /usr/local/www/data/ | grep ' 0B'
> -rw-r--r--  1 Marty  wheel     0B Nov 18 17:54 img52.jpg
> -rw-r--r--  1 Marty  wheel     0B Nov 18 17:54 img54.jpg

find /usr/local/www/data/ -size 0


--
David Fleck
david.fleck at mchsi.com



More information about the freebsd-questions mailing list