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
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Dealing with single quotes in file names
    2006-09-14 13:19:15  norburym [View]

    Sorry for the delay in replying!
    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@\'s\ just\ the\ way\ it\ is.rtf"
    That's just the way it is.rtf 100% 318 0.3KB/s 00:00
    mimimini:/ norburym$
    Hope that helps!