Added utilities
This commit is contained in:
parent
f3819f90a8
commit
f1dbbd6029
|
@ -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"
|
Loading…
Reference in New Issue