| Article: |
An Introduction to Tiger Terminal, Part 2 | |
| Subject: | Dealing with single quotes in file names | |
| Date: | 2006-08-27 06:26:45 | |
| From: | mikesker | |
|
Good article... thanks. I have taken your advice and put the entire file path in single quotes for scp transfer. Additionally, I have had to put escapes ("\") in front of all the spaces, parentheses, "&", and ";", all of which have worked fine. The character that has me stumped is "'". For instance, I cannot seem to scp a file named "That's just the way it is.mp3". I have been pulling my hair out. Any ideas? Thanks, -mike |
||
Showing messages 1 through 1 of 1.
-
Dealing with single quotes in file names
2006-09-14 13:19:15 norburym [View]



If your file name has a single quote in it (or an apostrophe as it appears in the file name) then just do this (I created a test rtf file called That's just the way it is.rtf):
mimimini:/ norburym$ scp That\'s\ just\ the\ way\ it\ is.rtf "norburym@10.0.1.7:That\'s\ just\ the\ way\ it\ is.rtf"
Password:
That's just the way it is.rtf 100% 318 0.3KB/s 00:00
mimimini:/ norburym$
Hope that helps!
Mary