[wplug] Interesting shell problem (possibly OT?)

Drew from Zhrodague drewzhrodague at zhrodague.net
Mon Jan 10 23:44:06 EST 2011


On 1/10/11 10:23 PM, Christopher DeMarco wrote:
>
> On 06 Jan 2011, at 12:09 PM, Nathan Embery wrote:
>
>> a script that passes a huge list of files to grep for processing
>> then deletes them if necessary. Pretty basic stuff.
>
> rm -vf $(grep -lr "Major Fault: AIS") | wc -l
>
> Or was the question less about brevity and more about YTF it happened?
>
>


	Dammit, that just deleted my hard drive!!!


-- 

Drew from Zhrodague		http://www.WiFiMaps.com
drew at zhrodague.net		http://www.pghwireless.net
http://zhrodague.net		http://dorkbot.org/dorkbotpgh
				http://www.hackpittsburgh.org



More information about the wplug mailing list