0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00
Files
RadioPlayer/playlists/add.sh
2025-04-01 16:00:16 +02:00

18 lines
252 B
Bash
Executable File

#!/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."