Linux Today: Linux News On Internet Time.

How to Handle files with a strange name in linux shell

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

[ 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

test file.txt

Complete Story

Related Stories: