Andrew Beaton :: FAQ

Archive for November, 2009

SCP files with spaces in them

by Andrew on Nov.27, 2009, under Linux

Right, I’m sure we’ve all come across this probem before. You try use SCP to copy a file but it has spaces in the filename or directory name. Well obviously one solution is not to use spaces in filenames or directory names! But some of you lot do, so, try the following:

scp user@host:"'filename with spaces'" destination

Yes, that’s with more quotes!

" + ' + filename with spaces + ' + "
Leave a Comment :, , , more...

Recursively remove all .svn directories

by Andrew on Nov.27, 2009, under Linux

Sometimes you need to clear out all of the .svn files and directories.

The following command will recursively remove each one of them for you:

rm -rf `find . -name .svn`
Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

 

Archives

All entries, chronologically...