Command Line Question
James Finstrom
jfinstrom at rhinoequipment.com
Mon May 10 09:51:13 MST 2010
man rm:
-f, --force
ignore nonexistent files, never prompt
Dangerous sometimes but it is what you seek
On Mon, May 10, 2010 at 9:40 AM, Dan Dubovik <dandubo at gmail.com> wrote:
> rm -i *.txt | yes
>
> may work for you?
>
> [root at localhost]# yes --help
> Usage: yes [STRING]...
> or: yes OPTION
> Repeatedly output a line with all specified STRING(s), or `y'.
>
> --help display this help and exit
> --version output version information and exit
>
>
> On Mon, May 10, 2010 at 9:35 AM, Eric Cope <eric.cope at gmail.com> wrote:
>
>> Good morning all,
>> I have a question that I don't know how to google. When I issue a command
>> like "rm -i *.txt", it responds with a question that I type 'y' for every
>> line. I recall a way to issue a 'y' to every question. I thought it was 'y!'
>> but that doesn't seem to work. Does anyone know this trick.
>>
>> Thanks,
>> Eric
>>
>> p.s. yes, I know I can use \rm *.txt or rm -f *.txt for this specific
>> trite case, but there are other situations where this would be helpful.
>>
>>
>> ---------------------------------------------------
>> 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
>>
>
>
> ---------------------------------------------------
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100510/e035c9af/attachment.htm>
More information about the PLUG-discuss
mailing list