You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
18 lines
252 B
Bash
Executable File
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."
|