On Sun, 26 Oct 2003 14:10:01 +
Karsten M. Self [EMAIL PROTECTED] wrote:
on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson
([EMAIL PROTECTED]) wrote:
On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote:
Sadly no, I neglected to say that I could not get things to work
Colin Watson writes:
Just in case other people try this, 'rm -rf .*' is VERY DANGEROUS.
'.*' expands to include '.' and '..', and if you happen to have
privileges to write to the parent directory then you'll end up
removing all directories *next* to your current directory as well!
That was
Kirk Strauser wrote:
At 2003-10-26T18:46:05Z, David Jardine [EMAIL PROTECTED] writes:
rm -r `ls`
do the trick?
No; it wouldn't list files starting with '.'. That whole line of
experimentation also fails on any filename with a space in it.
Thanks for trimming that so well! I wonder how
on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson ([EMAIL PROTECTED]) wrote:
On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote:
Sadly no, I neglected to say that I could not get things to work even
using a test account and doing an rm -rf .* in $HOME.
Just in case other
[EMAIL PROTECTED] said:
Other tips?
use zsh:
[orr](0) % zsh
[orr](0) % touch .foo
[orr](0) % echo .*
.foo
[orr](0) % bash
bash-2.05b$ echo .*
. .. .foo
Jason
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe.
On Sun, Oct 26, 2003 at 10:12:18AM -0500, Bijan Soleymani wrote:
On Sun, Oct 26, 2003 at 02:10:01PM +, Karsten M. Self wrote:
on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson ([EMAIL PROTECTED]) wrote:
On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote:
Sadly no, I
At 2003-10-26T18:46:05Z, David Jardine [EMAIL PROTECTED] writes:
Then wouldn't
rm -r `ls`
do the trick?
No; it wouldn't list files starting with '.'. That whole line of
experimentation also fails on any filename with a space in it.
--
Kirk Strauser
In Googlis non est, ergo non est.
At 2003-10-26T15:12:18Z, Bijan Soleymani [EMAIL PROTECTED] writes:
You could always do:
rm -r `ls -A`
If you have good backups, consider the ramifications of:
$ touch 'a .. b'
$ rm -r `ls -A`
--
Kirk Strauser
In Googlis non est, ergo non est.
pgp0.pgp
Description: PGP signature
On Sun, Oct 26, 2003 at 01:29:44PM -0600, Kirk Strauser wrote:
At 2003-10-26T15:12:18Z, Bijan Soleymani [EMAIL PROTECTED] writes:
You could always do:
rm -r `ls -A`
If you have good backups, consider the ramifications of:
$ touch 'a .. b'
$ rm -r `ls -A`
Oops... My bad...
On Sun, Oct 26, 2003 at 02:10:01PM +, Karsten M. Self wrote:
on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson ([EMAIL PROTECTED]) wrote:
On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote:
Sadly no, I neglected to say that I could not get things to work even
using a
Jason Lunz wrote:
[EMAIL PROTECTED] said:
Other tips?
use zsh:
[orr](0) % zsh
[orr](0) % touch .foo
[orr](0) % echo .*
.foo
[orr](0) % bash
bash-2.05b$ echo .*
. .. .foo
Jason
or just use a recent version of coreutils[5.0-5 tested]
$rm
On Sun, Oct 26, 2003 at 07:46:05PM +0100, David Jardine wrote:
On Sun, Oct 26, 2003 at 10:12:18AM -0500, Bijan Soleymani wrote:
On Sun, Oct 26, 2003 at 02:10:01PM +, Karsten M. Self wrote:
on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson ([EMAIL PROTECTED]) wrote:
On Fri, Oct
Karsten == Karsten M Self [EMAIL PROTECTED] writes:
Karsten on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson
Karsten ([EMAIL PROTECTED]) wrote:
On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote:
Sadly no, I neglected to say that I could not get things to work
13 matches
Mail list logo