pull/140/merge
Nils Winkler 2017-05-16 04:23:16 +00:00 committed by GitHub
commit 21ee663e00
1 changed files with 15 additions and 0 deletions

View File

@ -204,3 +204,18 @@ function del() {
group 'base' group 'base'
mkdir -p /tmp/.trash && mv "$@" /tmp/.trash; mkdir -p /tmp/.trash && mv "$@" /tmp/.trash;
} }
for_all_dirs ()
{
about 'loops through all subdirectories of the current directory and executes the specified command in each of them'
param 'command'
group 'base'
example '$ for_all_dirs svn up'
for dir in */
do
echo "Processing $dir"
cd "$dir"
$*
cd ..
done
}