IPB

Welcome Guest ( Log In | Register )

> Upload forum rules

- No over 30 sec clips of copyrighted music. Cite properly and never more than necessary for the discussion.


- No copyrighted software without permission.


- Click here for complete Hydrogenaudio Terms of Service

Case's Sweep
Mr_Rabid_Teddybe...
post Aug 7 2005, 17:22
Post #1





Group: Members
Posts: 1197
Joined: 3-September 03
From: Bergen, Norway
Member No.: 8667



Case's Sweep.exe. Small useful tool, now gone from his site....
QUOTE
Usage: SWEEP [/s] <command + parameters...>
Executes given command in all subdirectories
Option /s turns silent mode on


EDIT: Found original zip file. Here's binary and source in the same archive.

This post has been edited by Mr_Rabid_Teddybear: Jan 26 2006, 18:27
Attached File(s)
Attached File  Sweep.zip ( 19.24K ) Number of downloads: 671
 


--------------------
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Mr_Rabid_Teddybe...
post Oct 4 2006, 23:42
Post #2





Group: Members
Posts: 1197
Joined: 3-September 03
From: Bergen, Norway
Member No.: 8667



[ancient thread resurrection]

GNU "find" is a very useful and versatile app. However at the cost of being
rather complex and demanding a lot of typing to initialize certain functions.
Here's a script that tries to mimic sweeps simple function on Linux:

CODE
#!/bin/bash
[ $# -eq 2 ] || { echo "run something recursively from working directory";
echo "usage: `basename $0` '<command>' '<glob>'"; exit; }
echo
echo "`date "+%F %T"` running command:"
echo "find . -name \"$2\" -type f -exec $1 '{}' \;"
echo
find . -name "$2" -type f -exec $1 '{}' \;



[/ancient thread resurrection]


--------------------
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd September 2014 - 06:32