[PLUG] filenames with spaces, shell programming ...
Paul Heinlein
heinlein at madboa.com
Fri May 20 18:37:42 UTC 2005
On 5/20/05 11:19 AM, Russell Senior wrote:
> Problem is, I am more or less stuck with the file of filenames as a
> starting point. I need to re-tokenize them, I guess, but how?
I think it's actually easier at that point, assuming you're using bash
and can take advantage of its funky, somewhat mystical ability to read
whole lines when using shell redirection to pipe a file into a while loop:
while read f
do
echo "$f"
cmp -v "/foo/$f" "/bar/$f"
done < fnames
--
Paul Heinlein <> heinlein at madboa.com <> www.madboa.com
More information about the PLUG
mailing list