bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange file -i


From: Chet Ramey
Subject: Re: Strange file -i
Date: Thu, 05 Mar 2015 15:55:51 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 3/5/15 3:52 PM, Stephane Chazelas wrote:
> 2015-03-05 15:20:44 -0500, Chet Ramey:
> [...]
>> For example, I never do this:
>>
>>> $ perl -ne 'print if /foo/' *
>>
>> I just use grep directly.
> 
> That was just a basic example.
> 
> What about:
> 
> sed 's/foo/bar/g' *
> 
> ?

Yes, I literally never do that.

> 
>> Or this:
>>
>>> rm -- *
> [...]
> 
> Then, you're in for some bad surprise some day.

Not yet. I do use ./* when necessary.  This all reinforces my point.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]