Re: help, help scripting masters

From: David J. Weller-Fahy <dave-lists-aklug@weller-fahy.com>
Date: Sun Mar 21 2004 - 21:11:22 AKST

* captgoodnight@acsalaska.net <captgoodnight@acsalaska.net> [2004-03-21 20:23 -0900]:
> command --folder a\ folder\ with\ spaces
> now in a bash script, say,
>
> cd "$FOLDER"
> ls "$FOLDER"
>
> I haven't found a way to hold the escapes in a variable, do the
> escapes get removed when entering the variable or when using the
> variable? I'm stumped. It's gotta be something simple, as always. |;0)

Just tried this out on my system:

mkdir "bleah no"
LIST=`ls -d ble*`
ls -d "${LIST}"
rm "${LIST}"

Maybe try to use the ${VARNAME} syntax?

Regards,

-- 
dave [ please don't CC me ]
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Mar 21 21:11:52 2004

This archive was generated by hypermail 2.1.8 : Sun Mar 21 2004 - 21:11:52 AKST