Creativebits.org

an All Creative World site
iDid's picture
6 pencils

Spaces in the Terminal

Hello!

When we create a document, we can put spaces in his name.
But in Terminal, when I try to reach a document named (for example) "forfait déplacements.txt" (note the first Ecute... hmmm yes, I run a french OSX)
that's what I get:

"G5TOTOR:~/Documents idid$ cat forfait de??placements.txt
cat: forfait: No such file or directory
cat: de??placements.txt: No such file or directory
G5TOTOR:~/Documents idid$ "

So, my first question is: How can I type those damn spaced document names in the Terminal to get my information?
The second one is: how can I solve this accent problem?

Thanks!
iDid

Commenting on this Forum topic is closed.

phatcactus's picture
109 pencils

Put a slash in front of any space, so that "hello world" becomes "hello\ world".

The accented E is unreasonably complicated for some reason, but to make life easy, you can just drag the file into the Terminal window. Its relative path will be put in automatically (along with a pesky trailing space that insists on tagging along).

FWIW, "héllo world" becomes "he\314\201llo\ world".

iDid's picture
6 pencils

Thanks for the tip!

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

Do you need a great new logo?

If you need a logo for your company or product you can get it done with us.
In our logo store you can pick from over 28,000 pre-made logos that will be customized to your name for free or you can post a contest for us for just $250 and our designers from all over the world will submit dozens of logo design suggestions to your specific needs.

Marketplace