Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to ease scp for files with odd names' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to ease scp for files with odd names
Authored by: fastolfe on Sep 30, '07 09:03:24AM

Do not use this. Learn how to quote in your shell:

scp "File with weird char's[sic].txt" destination:
scp 'He said, "She said."' destination:
scp '$$$ MAKE "MONEY" FAST $$$.txt' destination:

Single- and double-quotes wrap the argument so that spaces don't break it up into multiple arguments. Or use backslashes to escape the problem characters specifically:

scp one\ two\ three\ four.txt destination:



[ Reply to This | # ]