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

Re: removing a pesky file

2009-05-15 Thread Jordi Beltran Creix
2009/5/15 Ryan Flannery : > 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|7 tarski> True, I had checked it using the shell t

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 countles

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 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. Outpu

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 > wrote: > > Ryan Flannery wrote: > >> On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix > >> wrote: > >> > rm `ls | grep E` would delete that file leaving others alone. > >> > > >> > Regards, > >> > > >> > >> Just for t

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Fri, May 15, 2009 at 12:07 AM, Chris Kuethe 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 Thanks

Re: removing a pesky file

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

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 > 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

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix 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) from your example 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 9:48 PM, Ryan Flannery wrote: > On Thu, May 14, 2009 at 9:28 PM, Matthew Clarke 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

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 9:28 PM, Matthew Clarke 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 charac

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 appe

Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 9:10 PM, Philip Guenther wrote: > On Thu, May 14, 2009 at 5:47 PM, Ryan Flannery 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 */

Re: removing a pesky file

2009-05-14 Thread Philip Guenther
On Thu, May 14, 2009 at 5:47 PM, Ryan Flannery 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")) == NULL) > err(

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 on