Dan -- ...and then dan radom said... % % mailboxes `ls -l /home/graffix/mail/* |awk '{print $9}' |egrep -v '(gz|drafts|sent)' | tr '\012' ' '` % % I uswe the above to catch everything in my mail directory with the exception of drafts, sent and anything that's been archived (gzipd).
Just curious... Is there any reason that you're using ls -l | awk instead of a simple ls -1 to build your list? The -1 shouldn't really be necessary, even, since you're piping to an egrep, but it ensures that you'll get your output in a column and isn't a bad idea -- and, more importantly, doesn't waste the time on a process like awk and thus isn't a burden. % % dan HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg22852/pgp00000.pgp
Description: PGP signature