You are not logged in.
Hi,
I've got a bunch of files with names containing 'not recommended' characters like [?']. Curiously, colon also presents a problem, though it isn't mentioned among difficult characters. I just want to copy them; Dolphin and Krusader won't oblige. Is there an easy answer to the problem?
Offline
mc will copy them just fine...
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
You can also use the rename command to remove or change the bad characters to something else. For instance:
rename \? '' * will remove all ? characters.
rename \: - * will replace all colons with hyphens.
Offline
You can copy them in the console. Just escape the : and ? like:
cp weird\:filename\? better_filename
Sometimes its also easier to just wrap it up in " and tab complete it
Offline
Then Dolphin and Krusader both suck.
pcmanfm will do it for you. Any character is fine.
In addition to what mikesd said, if your file name starts with "-" you can put "--" before them to avoid error, like this
$ cp -- '--weirdfonkyname' somewhereelse
This silver ladybug at line 28...
Offline