[ale] stupid windows directory names with spaces in them...

Geoffrey esoteric at 3times25.net
Wed Aug 14 10:13:34 EDT 2002


That's exactly what I ended up doing, but I'm going to check out Danny 
Cox's suggestion as well, thanks.

Josh Freeman wrote:
> I wrote a script to rename files with spaces in them. Would this help?
> 
> Josh
> 
> ----------------snip-------------------
> 
> if [ $# -eq 0 ]ess RETURN)
> then
>         echo
>         echo "Usage stripspace filename"
>         echo
>         exit 1
> fi
>  
> until [ $# -eq 0 ]
> do
>         NEWFILENAME=`echo $1| sed -e 's/ /_/g'`
>         mv "$1" $NEWFILENAME
>         shift
>  
> done                    
> 
> ------------------/snip-------------------
> 
> On Tue, 2002-08-13 at 20:51, Geoffrey wrote:
> 
>>Can anyone suggest a way I can create a tar file of a set of files that 
>>meet the above subjects criteria?
>>
>>I've tried escaping the bloody things, and tar still craps out.  I've 
>>tried wrapping the fully qualified filename in quotes, still no go.
>>
>>I've tried the following from the top of the mounted directory:
>>
>>tar -cvzf /tmp/data.tgz $(find . -name '*.dat' -print)
>>tar -cvzf /tmp/data.tgz $(find . -name '*.dat' -printf "\"%p\"\n")
>>
>>Sent the list of files to a file (/tmp/filelist) and escaped the spaces
>>(as in Program\ Files)
>>
>>tar -cvzf /tmp/date.tgz $(</tmp/filelist)
>>
>>What does it take other then fdisk to get over this headache???
>>
>>-- 
>>Until later: Geoffrey		esoteric at 3times25.net
>>
>>I didn't have to buy my radio from a specific company to listen
>>to FM, why doesn't that apply to the Internet (anymore...)?
>>
>>
>>---
>>This message has been sent through the ALE general discussion list.
>>See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
>>sent to listmaster at ale dot org.
>>
> 


-- 
Until later: Geoffrey		esoteric at 3times25.net

I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list