|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Awkward filename
Hi,
how can I move this file to another directory please? "\n".TXT I'd like to put it into an archive directory of it's current and mv "\n".TXT archive doesn't work neither does mv ""\n".TXT" archive mv ""\\n".TXT" archive mv "\n\".TXT archive mv "\n"".TXT archive tia, |
|
#2
|
||||
|
||||
|
Easiest way to do this is to let command completion figure it out for you (i.e. type mv \[press tab] (assuming you're using bash))
![]() Code:
$ mv \"\\n\".TXT archive/ The \n has to be escaped (\\n) so that you get a literal \ character, then your quotes have to be escaped as well, otherwise it'll just look for a file name \n.TXT Last edited by mu : June 20th, 2007 at 10:20 AM. |
|
#3
|
|||
|
|||
|
Quote:
Code:
mv '"\n".TXT' archive |
|
#4
|
|||
|
|||
|
thank you both very much
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Awkward filename |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|