Re: removing a pesky file

2009-05-15 Thread Jordi Beltran Creix
2009/5/15 Ryan Flannery ryan.flann...@gmail.com: tarski rm `ls | grep E` ~,u?} w=R1 T)U7r 5\4gm(_EW]W-sn^[[?1;2c: No such file or directory B B B B B B B B B Ec?J9 K%Mx/!...@s S,W7g?5 0,z: No such file or directory B B B B B B M}OWDt?Yw?rB~[*6t?0h|7aBz_ tarski True, I had

Re: removing a pesky file

2009-05-15 Thread Jan Stary
On May 14 20:47:46, Ryan Flannery wrote: I've been in similar situations countless times, but this one is throwing me a for a loop. I have a file that I'm trying to remove with non-printable characters in the name. Additionally, some of the characters appear to be backspace/delete/etc.

removing a pesky file

2009-05-14 Thread Ryan Flannery
I've been in similar situations countless times, but this one is throwing me a for a loop. I have a file that I'm trying to remove with non-printable characters in the name. Additionally, some of the characters appear to be backspace/delete/etc. All my normal tricks with rm(1) fail. Using vim

Re: removing a pesky file

2009-05-14 Thread Philip Guenther
On Thu, May 14, 2009 at 5:47 PM, Ryan Flannery ryan.flann...@gmail.com wrote: ... I can get the inode of the file with ls(1), and used that to write the following program which I thought would help, but sadly it too fails. ... /* open directory */ DIR *usr; if ((usr = opendir(/usr)) ==

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 9:10 PM, Philip Guenther guent...@gmail.com wrote: On Thu, May 14, 2009 at 5:47 PM, Ryan Flannery ryan.flann...@gmail.com wrote: ... I can get the inode of the file with ls(1), and used that to write the following program which I thought would help, but sadly it too

Re: removing a pesky file

2009-05-14 Thread Matthew Clarke
Thu, May 14, 2009 at 08:47:46PM -0400, Ryan Flannery may have written: I've been in similar situations countless times, but this one is throwing me a for a loop. I have a file that I'm trying to remove with non-printable characters in the name. Additionally, some of the characters appear

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 9:28 PM, Matthew Clarke cla...@telus.net wrote: Thu, May 14, 2009 at 08:47:46PM -0400, Ryan Flannery may have written: I've been in similar situations countless times, but this one is throwing me a for a loop. I have a file that I'm trying to remove with non-printable

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 9:48 PM, Ryan Flannery ryan.flann...@gmail.com wrote: On Thu, May 14, 2009 at 9:28 PM, Matthew Clarke cla...@telus.net wrote: Thu, May 14, 2009 at 08:47:46PM -0400, Ryan Flannery may have written: I've been in similar situations countless times, but this one is

Re: removing a pesky file

2009-05-14 Thread Jordi Beltran Creix
rm `ls | grep E` would delete that file leaving others alone. Regards,

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix jbcreix.m...@gmail.com wrote: rm `ls | grep E` would delete that file leaving others alone. Regards, Just for the list... I had tried that incantation, and others involving grep, and they all failed. Output (I just reproduced the file)

Re: removing a pesky file

2009-05-14 Thread Tony Abernethy
Ryan Flannery wrote: On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix jbcreix.m...@gmail.com wrote: rm `ls | grep E` would delete that file leaving others alone. Regards, Just for the list... I had tried that incantation, and others involving grep, and they all failed. Output

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 11:42 PM, Tony Abernethy t...@servacorp.com wrote: Ryan Flannery wrote: On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix jbcreix.m...@gmail.com wrote: rm `ls | grep E` would delete that file leaving others alone. Regards, Just for the list... I had tried

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Fri, May 15, 2009 at 12:07 AM, Chris Kuethe chris.kue...@gmail.com wrote: cd /usr mkdir .save mv [A-Za-z]* .save rm * mv .save/* . Son of a #...@!^% Yes, that would have been *far* simpler/easier/quicker, and would have worked. *That's* the clue-stick I was looking for. Many

Re: removing a pesky file

2009-05-14 Thread Tony Abernethy
Ryan Flannery wrote: On Thu, May 14, 2009 at 11:42 PM, Tony Abernethy t...@servacorp.com wrote: Ryan Flannery wrote: On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix jbcreix.m...@gmail.com wrote: rm `ls | grep E` would delete that file leaving others alone. Regards,

Re: removing a pesky file

2009-05-14 Thread Navan Carson
On May 14, 2009, at 9:15 PM, Ryan Flannery wrote: On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix jbcreix.m...@gmail.com wrote: rm `ls | grep E` would delete that file leaving others alone. Regards, Just for the list... I had tried that incantation, and others involving grep, and

Re: removing a pesky file

2009-05-14 Thread Prabhu Gurumurthy
why can't you use ls -i, find the inode, and do find . -inum INODENUM -exec rm {} \; is it a list of file that you want to remove put all the files in a text file and do a for loop. HTH! Prabhu - On May 14, 2009, at 5:47 PM, Ryan Flannery wrote: I've been in similar situations