This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# Definicija boja i simbola za ispis (ako je izlaz terminal) | |
if test -t 1; then | |
GREEN=$'\033[32m' | |
YELLOW=$'\033[33m' | |
RED=$'\033[31m' | |
NC=$'\033[0m' | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# helper function parameters: 0 or empty = print only, 1 = rename files! | |
renamemp3() { | |
local s="${1:-0}" | |
for f in *.mp3; do | |
if [[ "$f" == *[\"\`]* ]] | |
then | |
filename=${f%.*} | |
filename=${filename//\"} |