The 'g' is unnecessary. -rob
On Wed, Dec 30, 2009 at 4:59 AM, Tim Newsham <news...@lava.net> wrote: >> It is suggested to use >> du -a | awk '{print $2}' >> instead of find. But what if filename contains spaces? For example if >> file is named "foo bar" then awk will output "foo" only. > > What about > > du -a | sed 's/^[0-9]*<tab>//g' > > no loss on spaces in filenames. > no loss on tabs in filenames. > > Tim Newsham | www.thenewsh.com/~newsham | thenewsh.blogspot.com > >