[TriLUG] RE with bash

Joseph Mack NA3T jmack at wm7d.net
Mon Oct 23 12:39:23 EDT 2006


On Mon, 23 Oct 2006, William Sutton wrote:

> try find . -type d -print0 |xargs -0 cd ?  the -print0 and xargs -0 tell
> it to null terminate each string rather than space terminate....

thanks, didn't know about that. Will see what I can do with 
that.

In the meantime I've got to

directory=${directory/_lots_of_stuff/}
echo "director $directory"

 	when I run this with bash -x I get

directory 'Flash\ Player'

(note single quotes)

cd $directory (where directory='Flash\ Player')

doesn't go

but using the mouse I see that

cd Flash\ Player

does work.

(time for a walk)

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