Spaces (and other characters) in filenames
Dariusz J. Garbowski
thuforuk at yahoo.co.uk
Thu Aug 24 01:28:28 UTC 2006
On 08/23/2006 06:31 PM, Dotan Cohen wrote:
> On 23/08/06, Freddie Cash <fcash-ml at sd73.bc.ca> wrote:
>> What's difficult? Just put "" around the filenames and everything
>> Just Works. :) Works with any and all command line apps. If there's
>> some really crazy characters in the file/directory name (like * or ?),
>> then use single quotes '' instead.
>>
>> # cd "/some/long directory_path/With weir' names/and_ filenames.txt"
>> # cp "this is a bad file name as there's punctuation...txt" /some/dir
>> # oowriter "some other filename with spaces.odt"
>>
>
> Will do, thanks. By the way, I've been googling bash tutorials, but
> none of them really explore interacting with file names. And lots of
> the 'tutorials' are really just blogs looking for adsense revenue.
> Does anybody have any good bash resources bookmarked that they'd like
> to share? Specifically, interacting with files through bash. I see
> that I've asked quite a few questions on the subject in the past.
Google for "Advanced Bash-Scripting HOWTO".
Another worthwile, short article is "Bash 3.0 released":
http://lwn.net/Articles/96648/
I explains a few new features (useful ones!) introduced in bash 3
Regards,
Dariusz
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
More information about the kubuntu-users
mailing list