Merged old and new scripts folder + minor changes

This commit is contained in:
2022-02-04 21:15:36 +01:00
parent a65c9aa953
commit 6a0369c19b
5 changed files with 41 additions and 25 deletions

18
foreach Executable file
View File

@ -0,0 +1,18 @@
#/bin/bash
if [[ "$1" == "--help" ]]
then
echo -e "\nforeach [filter] [path] [action]\n"
exit
elif [[ "$1" == "-h" ]]
then
echo -e "\nforeach [filter] [path] [action]\n"
exit
fi
action=$3
filter=$1
path=$2
for f in $path/$filter
do
$action
done