Script for fetching random accent
This commit is contained in:
12
addbrackets.sh
Executable file
12
addbrackets.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
files="$(find ~/Tower/Resources/strippedAccents -iregex '.*(.*' -not -iregex '.*).*')"
|
||||||
|
|
||||||
|
IFS=$'\n'
|
||||||
|
for file in $files
|
||||||
|
do
|
||||||
|
new_name="$(echo "$file" | sed 's/.mp3/).mp3/')"
|
||||||
|
|
||||||
|
echo "Moving to $new_name"
|
||||||
|
mv "$file" "$new_name"
|
||||||
|
done
|
||||||
7
randomaccent.sh
Executable file
7
randomaccent.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
# !/bin/bash
|
||||||
|
|
||||||
|
file="$(find ~/Tower/Resources/strippedAccents -name '*.mp3' | shuf | head -1)"
|
||||||
|
|
||||||
|
echo "$(basename "$file" .mp3)"
|
||||||
|
|
||||||
|
mpv "$file"
|
||||||
Reference in New Issue
Block a user