Inadvertently, I created a file named: 'popdatck . $dept' and now I have a problem to remove it.
The suggestions to put this name in quotes or to place a backslash before the special characters don't help, neither with the 'rm'(delete)command nor(attempting to first change the filename) with the 'mv' command.
That is,
'rm popdatck . $dept'
or 'rm "popdatck . $dept"'
or 'rm "popdatck \. \$dept"'
or even "popdatck$dept"
gives me:
'dept: Undefined variable.'
and,
'rm popdatck \. \$dept'
gives me:
rm: cannot remove `popdatck': No such file or directory
rm: cannot remove `.' or `..'
rm: cannot remove `$dept': No such file or directory
Any more suggestions?
lev
In reply to Deleting an Odd Filename by lev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |