[TriLUG] RE with bash

Joseph Mack NA3T jmack at wm7d.net
Mon Oct 23 14:10:51 EDT 2006


On Mon, 23 Oct 2006, Joseph Mack NA3T wrote:

the answer is trivial (RTFM, Q14)

http://home.comcast.net/~j.p.h/cus-faq-2.html#14

> echo "directories=$directories"
>
>    gives
>
> directories=A|Flash\ Player|foo

don't go putting '\' in a filename. Instead stop the shell 
from doing filename expansion

# directories=A|Flash Player|foo

# set -f; IFS="|"; for directory in $directories; do echo $directory; cd $directory; cd -; done

cd's just fine to Flash Player

Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the TriLUG mailing list