dcsimg
Linux Today: Linux News On Internet Time.





More on LinuxToday


How to Handle files with a strange name in linux shell

Dec 06, 2010, 20:32 (2 Talkback[s])

WEBINAR:
On-Demand

Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers


[ Thanks to linuxaria for this link. ]

"Sometimes it happen to find in our file system files with strange names, with that i means files with non-alphanumeric characters or spaces between different words, maybe uploaded by users, or files produced by mistake by someone or some program, and unfortunately is often not trivial to do a mv < file > or rm < file >.

"Let's see how to get rid of these horrors.

"Case #1, space-separated file.

"Suppose you have:

ls -1

file2.txt
test file.txt

Complete Story

Related Stories: