hey all, I have a couple scripts for automating mp3 downloading from the web. I want both of them to cd into the directory I keep mp3's in before the download....and it's the same directory. So I figured I'd put the path to the directory in a file, have the scripts grab the data from the file as a string, then cd to that location.
Problem is, when I load the data into the variable, it won't let me...saying that it's a directory, when I want it to just load the path as a string. Subsequently, the cd doesn't work because the variable has no path in it, so it goes to ~. any insights? datafile contents: ------------------ "/Volumes/moon/music" source: ------- #!/usr/bin/bash mp3Dir = 'cat ~/mp3Dir' cd $mp3Dir pwd #comment out the meaty bits while i debug #wget -H -l 1 -A $1 -r $2 -R robots.txt pwd exit command/output -------------- bash-2.05$ audioPage mp3 http://hansilla.com/sound.html /Users/tack/mp3Dir: /Volumes/moon/music: is a directory /Users/tack /Users/tack bash-2.05$ any insight would be appreciated. I use this script a lot (well, the wget part) to grab all mp3's linked to from a given web page (like a directory listing....hehehehe). It would be cool if I didn't have to hard code the directory they're supposed to go to in the script (as I have other nifty wget wrappers). thanks tack _______________________________________________ Bits mailing list [EMAIL PROTECTED] http://www.sugoi.org/mailman/listinfo/bits
