Add misc script
This commit is contained in:
parent
2ff72c0c5c
commit
b762ceac3e
11
.config/scripts/misc/copy-music-covers.sh
Executable file
11
.config/scripts/misc/copy-music-covers.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
find "~/Music" -type f -iname '*cover.*' | while read file; do
|
||||||
|
destfile=$(echo "$file" | sed 's/Music/Music-transcode/')
|
||||||
|
mkdir -p "$(dirname "$destfile")"
|
||||||
|
if [ -f "$destfile" ]; then
|
||||||
|
echo "$destfile file exists"
|
||||||
|
else
|
||||||
|
cp -i "$file" "$destfile"
|
||||||
|
echo "copying to $destfile"
|
||||||
|
fi
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user