[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Maybe offtopic: Dealing with filenames with blanks in a script



At 2004-04-27T21:56:01Z, Jaime Soriano Pastor <kronoss@kronoss.org> writes:

> I think this should work:
>
> for i in `ls *`; do cat "$i"; done

Nope.  That'll expand to:

  for i in test 1 test 2 test 3; do cat "$i"; done

which well execute:

  cat test
  cat 1
  ...
  cat 3

-- 
Kirk Strauser
In Googlis non est, ergo non est.

Attachment: pgpyTBXiPCzfK.pgp
Description: PGP signature


Reply to: