Whitespace in filenames
- From: soup_or_power@xxxxxxxxx
- Date: 27 Feb 2006 11:16:25 -0800
I have inherited some code that looks like this:
if [ ! -f $file ]
then
echo "Error Can't clean >$file<. May have spaces in the
name?"
else
mv "$file" DEL.$file
fi
I have these questions:
a) can it be rewritten as if [ ! -f "$file" ]...
b) change the mv as mv "$file" "DEL.$file"
Thanks for your help
.
- Follow-Ups:
- Re: Whitespace in filenames
- From: Centurion
- Re: Whitespace in filenames
- From: Chris F.A. Johnson
- Re: Whitespace in filenames
- Prev by Date: printing queued cups file to windows local pc printer. Possible?
- Next by Date: Re: Is Linux BSD or System V ?
- Previous by thread: printing queued cups file to windows local pc printer. Possible?
- Next by thread: Re: Whitespace in filenames
- Index(es):