On Saturday 25 August 2001 06:56, Paul Mackinney wrote:
> Karsten M. Self muttered:
> > on Wed, Aug 22, 2001 at 11:17:32AM +1000, Brian May
> > ([EMAIL PROTECTED]) wrote: I'm trying to remember a trick (probably in
> > O'Reilly's _UNIX Power Tools_) for removing files by inode...
>
> Arg. In my fir
Karsten M. Self muttered:
> on Wed, Aug 22, 2001 at 11:17:32AM +1000, Brian May ([EMAIL PROTECTED]) wrote:
> I'm trying to remember a trick (probably in O'Reilly's _UNIX Power
> Tools_) for removing files by inode...
Arg. In my first System V admin class, the instructor showed us how to
specify the
On Wednesday 22 August 2001 21:28, Walter Hofmann wrote:
> On Tue, 21 Aug 2001, Karsten M. Self wrote:
> > I'm trying to remember a trick (probably in O'Reilly's _UNIX Power
> > Tools_) for removing files by inode. Trying to remember what it was or
> > in what context it worked.
>
> Unmount the fi
On Tue, 21 Aug 2001, Karsten M. Self wrote:
> I'm trying to remember a trick (probably in O'Reilly's _UNIX Power
> Tools_) for removing files by inode. Trying to remember what it was or
> in what context it worked.
Unmount the filesystem, then do
[EMAIL PROTECTED]:~ > /sbin/debugfs
debugfs 1.
On Mon, Aug 20, 2001 at 02:26:37PM -0700, allen wayne best just ramblin in his
amx wrote:
> hello:
>
> i have managed to insert a bullet in my poda courtesy of tar and my
> ineptness! that is, i did:
>
> tar -cvIf --remove-files /tmp/foo.tz /opt/tmp
>
> silly me filled up my current dir
On Tue, Aug 21, 2001 at 08:32:40PM -0400, [EMAIL PROTECTED] wrote:
> In linux.debian.user, you wrote:
> > hello:
> >
> > i have managed to insert a bullet in my poda courtesy of tar and my
> > ineptness! that is, i did:
> >
> > tar -cvIf --remove-files /tmp/foo.tz /opt/tmp
> >
> > silly me
Brian May wrote:
> A simpler thing which does exactly the same thing (and surprisingly
> nobody seems to have mentioned it yet) is:
>
> rm -f ./--remove-files
:-)
Good answer. Whenever I have to delete a file with a difficult
name and fail after a few tries, I simply call up Emacs, run
`dired
on Wed, Aug 22, 2001 at 11:17:32AM +1000, Brian May ([EMAIL PROTECTED]) wrote:
> > "Karsten" == Karsten M Self writes:
>
> Karsten> $ find . -type f -name '--remove-files' -exec rm -f
> Karsten> {} \;
>
> If it weren't for the fact that "find" prefixes the name of the file
> with
> "Karsten" == Karsten M Self writes:
Karsten> $ find . -type f -name '--remove-files' -exec rm -f
Karsten> {} \;
If it weren't for the fact that "find" prefixes the name of the file
with "./", then this wouldn't work.
A simpler thing which does exactly the same thing (and surpr
> "Darren" == Darren Marsh <[EMAIL PROTECTED]> writes:
Darren> rm -i *files
[520] [scrooge:bam] ~ >rm -i *files
rm: unrecognized option `--remove-files'
Try `rm --help' for more information.
wont work, because it just calls "rm" with parameters "-i" and
"--remove-files", and rm can't tel
In linux.debian.user, you wrote:
> hello:
>
> i have managed to insert a bullet in my poda courtesy of tar and my
> ineptness! that is, i did:
>
> tar -cvIf --remove-files /tmp/foo.tz /opt/tmp
>
> silly me filled up my current directory with a file called "--remove-files".
> my question
Walter Hofmann wrote:
>
> Viktor Rosenfeld schrieb am Dienstag, den 21. August 2001:
>
> > but `rm ??remove-files` will also do the trick
>
> No, it gets globbed to "rm --remove-files" so this won't work.
Argh, now that you're pointing my nose at it, I can see it too! This
won't help anything.
Try
rm -- --remove-files
The "--" makes it take all following args as args and not options. This is a
standard thing for most of the GNU or Unix tools.
rm ./--remove-files
would work too. Got those from "man rm" :).
On Wed, Aug 22, 2001 at 07:28:26AM +1000, Darren Marsh wrote:
> allen wayne best
allen wayne best just ramblin in his amx wrote:
hello:
i have managed to insert a bullet in my poda courtesy of tar and my
ineptness! that is, i did:
tar -cvIf --remove-files /tmp/foo.tz /opt/tmp
silly me filled up my current directory with a file called "--remove-files".
my quest
Viktor Rosenfeld schrieb am Dienstag, den 21. August 2001:
> but `rm ??remove-files` will also do the trick
No, it gets globbed to "rm --remove-files" so this won't work.
Walter
At 2001-08-20T23:38:02Z, "Karsten M. Self" writes:
> Yet another solution:
>
> $ find . -type f -name '--remove-files' -exec rm -f {} \;
Since we're getting creative:
perl -e "unlink('--remove-files');"
is my obligatory contribution. :)
--
Kirk Strauser
On Mon, Aug 20, 2001 at 04:38:02PM -0700, Karsten M. Self wrote:
> Yet another solution:
>
> $ find . -type f -name '--remove-files' -exec rm -f {} \;
...which is just a longwinded way of saying "rm -f ./--remove-files".
(Unless you have a subdirectory containing another file named
"--remove-
It has been suggested already that `rm -- --remove-files` is the proper
way, but `rm ??remove-files` will also do the trick (but could erase a
lot more, so watch out)!
Cheers,
Viktor
--
Viktor Rosenfeld
WWW: http://www.informatik.hu-berlin.de/~rosenfel/
On Mon, Aug 20, 2001 at 02:54:52PM -0700, Greg Wiley wrote:
> On Monday, August 20, 2001 2:26 PM, [EMAIL PROTECTED] wrote:
>
> > silly me filled up my current directory with a file called
> "--remove-files".
> > my question is: how the heck to i get rid of this beast
> >
> > i've tried
>
> He
On Mon, Aug 20, 2001 at 02:26:37PM -0700, allen wayne best just ramblin in his
amx wrote:
> hello:
>
> i have managed to insert a bullet in my poda courtesy of tar and my
> ineptness! that is, i did:
>
> tar -cvIf --remove-files /tmp/foo.tz /opt/tmp
>
> silly me filled up my current dir
on Mon, Aug 20, 2001 at 02:26:37PM -0700, allen wayne best just ramblin in his
amx ([EMAIL PROTECTED]) wrote:
> hello:
>
> i have managed to insert a bullet in my poda courtesy of tar and my
> ineptness! that is, i did:
>
> tar -cvIf --remove-files /tmp/foo.tz /opt/tmp
>
> silly me fill
greg, bud:
thank you very much. my disk has much more room now. thanks for the prompt
replies.
On Monday 20 August 2001 15:03, Bud Rogers wrote:
> On Monday 20 August 2001 04:54 pm, Greg Wiley wrote:
> > On Monday, August 20, 2001 2:26 PM, [EMAIL PROTECTED] wrote:
> > > silly me filled up my cu
* allen wayne best just ramblin in his amx <[EMAIL PROTECTED]> spake thus:
> hello:
>
> i have managed to insert a bullet in my poda courtesy of tar and my
> ineptness! that is, i did:
>
> tar -cvIf --remove-files /tmp/foo.tz /opt/tmp
>
> silly me filled up my current directory with a fi
Try this:
rm -- --remove-files
The '--' means 'none of the following arguments are command line
switches, even if they really look like one.'
best,
Aaron
On Monday 20 August 2001 14:26, allen wayne best just ramblin in his
amx wrote:
> hello:
>
> i have managed to insert a bullet in my
On Monday 20 August 2001 04:54 pm, Greg Wiley wrote:
> On Monday, August 20, 2001 2:26 PM, [EMAIL PROTECTED] wrote:
> > silly me filled up my current directory with a file called
>
> "--remove-files".
>
> > my question is: how the heck to i get rid of this beast
> >
> > i've tried
>
> Here is a
On Monday, August 20, 2001 2:26 PM, [EMAIL PROTECTED] wrote:
> silly me filled up my current directory with a file called
"--remove-files".
> my question is: how the heck to i get rid of this beast
>
> i've tried
Here is a C program that will do it:
#include
int main() {
char *fname = "-
hello:
i have managed to insert a bullet in my poda courtesy of tar and my
ineptness! that is, i did:
tar -cvIf --remove-files /tmp/foo.tz /opt/tmp
silly me filled up my current directory with a file called "--remove-files".
my question is: how the heck to i get rid of this beast
27 matches
Mail list logo