Add 'collectionfor.sh'

This commit is contained in:
NaiJi ✨ 2022-10-26 09:32:53 +00:00
parent b8f31dd12b
commit 1f2386bf95
1 changed files with 12 additions and 0 deletions

12
collectionfor.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# READ ALL WEBP FILES FROM A FOLDER
# AND DO SOMETHING TO EACH OF THEM
files=$(ls | grep .webp)
for file in $files
do
name=$(echo $file | cut -f 1 -d '.')
echo "$name, /emoji/random/$name.webp"
done