lev has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Deleting an Odd Filename
by shmem (Chancellor) on Jun 01, 2009 at 10:34 UTC | |
|
Re: Deleting an Odd Filename
by jethro (Monsignor) on Jun 01, 2009 at 10:07 UTC | |
|
Re: Deleting an Odd Filename (avoid typing name)
by ikegami (Patriarch) on Jun 01, 2009 at 14:41 UTC | |
|
Re: Deleting an Odd Filename
by Bloodnok (Vicar) on Jun 01, 2009 at 10:06 UTC | |
by Anonymous Monk on Jun 01, 2009 at 10:11 UTC | |
by almut (Canon) on Jun 01, 2009 at 15:38 UTC | |
|
Re: Deleting an Odd Filename (inode)
by toolic (Bishop) on Jun 01, 2009 at 14:24 UTC | |
by afoken (Chancellor) on Jun 02, 2009 at 22:57 UTC | |
|
Re: Deleting an Odd Filename
by lakshmananindia (Chaplain) on Jun 01, 2009 at 10:01 UTC |