Re: Need help with scripting

2002-10-18 Thread Sean 'Shaleh' Perry
On Thursday 17 October 2002 21:32, Shawn Lamson wrote:
 good job... one question... should it be $@ instead of $@?  ie. what
 if he had spaces in the filenames... you could add a

 mv $file `echo $file | tr   _`
 to turn all spaces in the filename into underscores as the first line
 of the loop to handle that. right before
 base=`basename $file .mp3`


I was not trying to completely solve the problem, just lead down the path.  
Finding the bugs is the fun part (-:


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Need help with scripting

2002-10-18 Thread Jamin W . Collins
On Thu, 17 Oct 2002 21:32:43 -0700 (PDT) Shawn Lamson
[EMAIL PROTECTED] wrote:

 good job... one question... should it be $@ instead of $@?  ie. what
 if he had spaces in the filenames... you could add a

Or, you could change the shell internal field seperator via:

  IFS=$'\t\n'

This would temporarily drop space as a seperator.  Then populate the list
of file to work with from an ls command.

-- 
Jamin W. Collins


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]