[Gllug] Re:

Garry Heaton garry at heaton6.freeserve.co.uk
Fri Feb 11 21:24:26 UTC 2005


> When, you are in 'exdir' your command expands to

>  rm -R file1.txt

> Which obviously won't match 'subdir/file2.txt', so again
> you need to quote the command

>  rm -R '*.txt'

> Regards,
> Dan.

I tried it with single quotes, ie.

rm -R '*.txt'

... and it doesn't even remove any file within the current directory with a
.txt suffix. I get the error:

rm: cannot remove `*.txt': No such file or directory

Garry

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list