Command Line Question

Eric Cope eric.cope at gmail.com
Mon May 10 10:40:39 MST 2010


in this trite example, rm -f doesn't override read-only files. (\rm does).

On Mon, May 10, 2010 at 10:28 AM, James Finstrom <
jfinstrom at rhinoequipment.com> wrote:

> I am still lost as why you would want the extra load no matter how small of
> piping a second command when -f is built in. This is like folks doing `cat
> file.txt | grep -i term` rather then `grep -i  term file.txt`
>
>
> On Mon, May 10, 2010 at 10:24 AM, Eric Shubert <ejs at shubes.net> wrote:
>
>> Yeah, that looks better. < would redirect the contents of a file. Pipe is
>> for a command.
>>
>> Dan Dubovik wrote:
>>
>>>  yes | rm -i *txt
>>>
>>> seems to be the proper syntax.
>>>
>>> [root at localhost yestest]# rm -i file.* < yes
>>> -bash: yes: No such file or directory
>>>
>>> Dan
>>>
>>> On Mon, May 10, 2010 at 10:11 AM, Eric Cope <eric.cope at gmail.com<mailto:
>>> eric.cope at gmail.com>> wrote:
>>>
>>>    Thanks, the yes command was what I was looking for.
>>>    Thanks everyone.
>>>
>>>    Eric
>>>
>>>
>>>    On Mon, May 10, 2010 at 9:52 AM, <tjones136 at cox.net
>>>    <mailto:tjones136 at cox.net>> wrote:
>>>
>>>        #unalias rm
>>>        Sent from my Verizon Wireless BlackBerry
>>>
>>>        -----Original Message-----
>>>        From: Eric Cope <eric.cope at gmail.com <mailto:eric.cope at gmail.com
>>> >>
>>>        Date: Mon, 10 May 2010 09:35:15
>>>        To: Main PLUG discussion
>>>        list<plug-discuss at lists.plug.phoenix.az.us
>>>        <mailto:plug-discuss at lists.plug.phoenix.az.us>>
>>>        Subject: Command Line Question
>>>
>>>        ---------------------------------------------------
>>>        PLUG-discuss mailing list -
>>>        PLUG-discuss at lists.plug.phoenix.az.us
>>>        <mailto:PLUG-discuss at lists.plug.phoenix.az.us>
>>>
>>>        To subscribe, unsubscribe, or to change your mail settings:
>>>        http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>        ---------------------------------------------------
>>>        PLUG-discuss mailing list -
>>>        PLUG-discuss at lists.plug.phoenix.az.us
>>>        <mailto:PLUG-discuss at lists.plug.phoenix.az.us>
>>>
>>>        To subscribe, unsubscribe, or to change your mail settings:
>>>        http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>
>>>
>>>
>>>    ---------------------------------------------------
>>>    PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>>>    <mailto:PLUG-discuss at lists.plug.phoenix.az.us>
>>>
>>>    To subscribe, unsubscribe, or to change your mail settings:
>>>    http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>
>>>
>>>
>>
>> --
>> -Eric 'shubes'
>>
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>
>
>
> --
> James Finstrom
> Rhino Equipment Corp.
> http://rhinoequipment.com ~ http://postug.com
> Phone: 1-877-RHINO-T1 ~ FAX: +1 (480) 961-1826
> Twitter: http://twitter.com/rhinoequipment
> IP: guest at asterisk.rhinoequipment.com
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100510/761e0842/attachment.htm>


More information about the PLUG-discuss mailing list