On 02/ 2/10 09:38 PM, Orvar Korvar wrote:
ls -b
shows My\344Document\366.doc¨which seems better. I tried to find "*\344*" but 
that didnt work.


Some ways I've used in the past:

1) Shell completion (personally, I use tcsh) has helped me out here. If the name starts with a unique letter or phrase, then start tying "rm My" and press <tab>. tcsh will complete, usually including the necessary escapes along the way.

2) Locate some unique part of the filename, and use "rm *uniq*" to delete it.

3) Locate some partially-unique part of the filename, and use "rm -i *uniq*" to interactively delete the one you want;

opensolaris:~/test> rm -i file*
rm: remove file1 (yes/no)? n
rm: remove file2 (yes/no)? n
rm: remove file3 (yes/no)? y
rm: remove file4 (yes/no)? n
opensolaris:~/test> ls
file1  file2  file4  hello

4) Use a file manager and delete it "visually". The last time I used this method was with dtfm, the CDE file manager, but I suspect whatever GNOME's equivalent will do the same.

5) Last resort: Create a new sub-directory and "mv * newdir/". Then move everything else back to the original location, and "rm -rf newdir" to delete the directory and the awkward file.


They're not clever ways, but they can help in a tight spot. I used #3 this morning to delete a file named )(*&^%$"!
I used "rm *\!" to delete it as nothing else ended with a !

HTH
Brian

--
Brian Ruthven
Solaris Revenue Product Engineering
Sun Microsystems UK
Sparc House, Guillemont Park, Camberley, GU17 9QG

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to