0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-27 06:03:52 +01:00

add files, to cleanup

This commit is contained in:
2025-04-01 16:00:16 +02:00
parent 6500c73e77
commit ee71a31665
24 changed files with 1987 additions and 0 deletions

17
playlists/add.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <filename> <text>"
exit 1
fi
FILENAME="$1"
TEXT="$2"
for dir in *; do
if [ -d "$dir" ]; then
echo "$TEXT" >> "$dir/$FILENAME"
fi
done
echo "Text added to all directories."