Aug. 11th, 2008

theweaselking: (Default)
Step 1: Remove angry fox from leg.
Step 2: Have husband shoot fox.

It is important that you do these two steps in the correct order.
theweaselking: (Work now)
In bash, using only standard easily-available commands, how do I:

1) search an arbitrarily deep folder tree for all directories with a name matching a certain set pattern
2) delete those directories and all their contents, but *only* those directories and their contents.

There's gotta be a single command to do this. But it's also on a remote web server, meaning I can't just cheat and use the gui file system's search and delete commands.

EDIT:
[livejournal.com profile] hazmat provides me with
find /top/of/tree -type d -name your-glob-goes-here -exec rm -r {} \;
Which works perfectly!
theweaselking: (Default)
Robber's Gun Breaks Into Pieces During Holdup

According to the FBI, the robber kept yelling at everyone to stay down as he picked the pieces off the ground and put the gun back together again.

Profile

theweaselking: (Default)theweaselking
Page generated Apr. 2nd, 2026 07:23 am