[Tfug] Deleting file with invalid charcter

Jon bigj at flatwan.net
Wed Jul 4 22:40:00 MST 2007


George Cohn wrote:
> This is probably a stupid newbie question but I'll ask it anyway.
>
> I have a couple of music files on one of my Debian boxes that have a 
> apostrophe in the name, IE: dreamin'.mp3  I want to delete or rename the 
> file but rm, or mv gives me the > prompt.
>
> I've read the man pages for rm and mv and couldn't find the answer.
>
> George Cohn
>
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>   
Try placing an backslash \ in front of the '

Also, if you're running bash if you type in 'dreamin' then hit tab it'll 
autocomplete and escape the ' for you.


--
Jon




More information about the tfug mailing list