From 1f2386bf955268229e9c0de75a7e013b8711e2f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?NaiJi=20=E2=9C=A8?= Date: Wed, 26 Oct 2022 09:32:53 +0000 Subject: [PATCH] Add 'collectionfor.sh' --- collectionfor.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 collectionfor.sh diff --git a/collectionfor.sh b/collectionfor.sh new file mode 100644 index 0000000..db538e8 --- /dev/null +++ b/collectionfor.sh @@ -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 \ No newline at end of file