12 lines
219 B
Bash
12 lines
219 B
Bash
|
#!/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
|