Spaces (and other characters) in filenames

Ylan Segal ylan.segal at gmail.com
Wed Aug 23 17:51:23 UTC 2006


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.
> 

http://www.linuxcommand.org/

I found that to be a pretty good introduction to the Linux command line
and basic scripting (which is all I do, really).

-- 
Ylan





More information about the kubuntu-users mailing list