Re: Remove funny files

1999-07-14 Thread Remco Blaakmeer
On Wed, 7 Jul 1999, Jiri Baum wrote: > Hello, > > Allan M. Wind: > > On 1999-07-04 20:22, Rolf Edlund wrote: > > > > > rm -i Backupfiles/--exclude=files.txt > > > > There are 2 tricks: > > > > 1. rm -i * (say no to everything that you want to keep) > > No, this doesn't work. The shell e

Re: Remove funny files

1999-07-07 Thread Jiri Baum
Hello, Allan M. Wind: > On 1999-07-04 20:22, Rolf Edlund wrote: > > > rm -i Backupfiles/--exclude=files.txt > > There are 2 tricks: > > 1. rm -i * (say no to everything that you want to keep) No, this doesn't work. The shell expands the `*', and rm is once again left with a filename be

Re: Remove funny files

1999-07-06 Thread Shao Zhang
as a common unix thing, all these funny files should be remove as rm ./funny-file. On Sun, Jul 04, 1999 at 08:22:56PM +0200, Rolf Edlund wrote: > Hi! > > I was playing around with Tar, and done a verry foolish thing.. :-) > > tar -cvf --exclude=files.txt allfiles.tar * > > That gives me a '-

Re: Remove funny files

1999-07-05 Thread Brad
On Mon, 5 Jul 1999, Carl Mummert wrote: > > $ echo 'int main(){ unlink("--exclude_files=\"blah\"");}' > file.c && \ > > gcc file.c && ./a.out && rm -f a.out file.c & perl -e 'unlink q?--exclude_files="blah"?'

Re: Remove funny files

1999-07-05 Thread Carl Mummert
$ echo 'int main(){ unlink("--exclude_files=\"blah\"");}' > file.c && \ > gcc file.c && ./a.out && rm -f a.out file.c & Carl

Re: Remove funny files

1999-07-05 Thread Michael Merten
On Mon, Jul 05, 1999 at 08:37:50PM +0100, Mark Brown wrote: > On Mon, Jul 05, 1999 at 01:49:55AM -0500, Michael Merten wrote: > > > Umm... wouldn't a simple > > >rm '--excude=files.txt' > > > work?? > > No. The problem is rm trying to interpret --exclude as an option, not > the shell being

Re: Remove funny files

1999-07-05 Thread Mark Brown
On Mon, Jul 05, 1999 at 01:49:55AM -0500, Michael Merten wrote: > Umm... wouldn't a simple >rm '--excude=files.txt' > work?? No. The problem is rm trying to interpret --exclude as an option, not the shell being clever. -- Mark Brown mailto:[EMAIL PROTECTED] (Trying to avoid grumpiness

Re: Remove funny files

1999-07-05 Thread Michael Merten
On Mon, Jul 05, 1999 at 07:22:05AM +, Dan wrote: > Whats "excude"? > > >On Mon, 5 Jul 1999, Michael Merten wrote: > > > > > Umm... wouldn't a simple > > > > > >rm '--excude=files.txt' > > > > > > work?? > > > >That was one thing I tryed, but it din't work. > > > >rm: unrecognized option `-

Re: Remove funny files

1999-07-05 Thread Dan
Whats "excude"? On Mon, 5 Jul 1999, Michael Merten wrote: > Umm... wouldn't a simple > >rm '--excude=files.txt' > > work?? That was one thing I tryed, but it din't work. rm: unrecognized option `--excude=files.txt' Try `rm --help' for more information. - * Linux - a more stable way to l

Re: Remove funny files

1999-07-05 Thread Rolf Edlund
On Mon, 5 Jul 1999, Michael Merten wrote: > Umm... wouldn't a simple > >rm '--excude=files.txt' > > work?? That was one thing I tryed, but it din't work. rm: unrecognized option `--excude=files.txt' Try `rm --help' for more information. - * Linux - a more stable way to live * - -- Mvh

Re: Remove funny files

1999-07-05 Thread Michael Merten
On Mon, Jul 05, 1999 at 05:51:50AM +0200, Rolf Edlund wrote: > On Sun, 4 Jul 1999, Martin Bialasinski wrote: > > > That is, rm -i -- --exclude=files.txt would have removed the file. > > One of the wonderful thing about Linux, is that there are several ways to > fix things. :-) > > - * Linux -

Re: Remove funny files

1999-07-05 Thread Rolf Edlund
On Sun, 4 Jul 1999, Martin Bialasinski wrote: > That is, rm -i -- --exclude=files.txt would have removed the file. One of the wonderful thing about Linux, is that there are several ways to fix things. :-) - * Linux - a more stable way to live * - -- Mvh Rolf Edlund Tel:070-3049194

Re: Remove funny files

1999-07-04 Thread Martin Bialasinski
>> "Rolf" == Rolf Edlund <[EMAIL PROTECTED]> writes: Rolf> That gives me a '--exclude=files.txt' file. Trying to remove it Rolf> as 'rm -i --exclude=files.txt' was unpossible. But when I go upp Rolf> one directory, then it was easy to remove the file. -- starts an option. Commands, that accept -

Re: Remove funny files

1999-07-04 Thread Allan M. Wind
On 1999-07-04 20:22, Rolf Edlund wrote: > rm -i Backupfiles/--exclude=files.txt There are 2 tricks: 1. rm -i * (say no to everything that you want to keep) 2. rm -- FILE In this case, 2 would work. /Allan -- Allan M. Wind Phone: 781.938.5272 (home) 687 Ma

Re: Remove funny files

1999-07-04 Thread Mark Wagnon
On Sun, Jul 04, 1999 at 08:22:56PM +0200, Rolf Edlund wrote: > Hi! > > I was playing around with Tar, and done a verry foolish thing.. :-) > > tar -cvf --exclude=files.txt allfiles.tar * > > That gives me a '--exclude=files.txt' file. Trying to remove it as 'rm -i > --exclude=files.txt' was u

Remove funny files

1999-07-04 Thread Rolf Edlund
Hi! I was playing around with Tar, and done a verry foolish thing.. :-) tar -cvf --exclude=files.txt allfiles.tar * That gives me a '--exclude=files.txt' file. Trying to remove it as 'rm -i --exclude=files.txt' was unpossible. But when I go upp one directory, then it was easy to remove the fi