How to Handle files with a strange name in linux shell

 

How to Handle files with a strange name in linux shell
Dec 6, 2010, 20 :32 UTC (1 Talkback[s]) (1203 reads)

[ 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:
Ubuntu view Processes and Port Usage(Dec 04, 2010)
Back door in ProFTPD FTP server(Dec 03, 2010)
Top 10 shell/bash tricks!(Dec 01, 2010)
The GNOME 3.0 Shell Is Advancing Too(Dec 01, 2010)
Export Variables in Bash(Dec 01, 2010)
Tuxtorial - An easy way to create and share tutorials for GNU/Linux(Nov 24, 2010)
Dig into your history (for bash and zsh)(Nov 19, 2010)
GNOME Terminal - Command Summary [Mockup](Nov 19, 2010)







View the original article here