Added utilities

This commit is contained in:
leca 2023-02-07 00:01:21 +03:00
parent f3819f90a8
commit f1dbbd6029
1 changed files with 16 additions and 0 deletions

16
utilities/sort.sh Executable file
View File

@ -0,0 +1,16 @@
extension=""
echo "Type an extension to sort"
read extension
to_sort=$(find . -name "*.${extension}");
mkdir sorted;
counter=1
for file in $to_sort; do
mv ${file} sorted/$counter.${extension}
((counter++))
done
echo "Done"