You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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