You've already forked RadioPlayer
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:
17
playlists/add.sh
Executable file
17
playlists/add.sh
Executable 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."
|
||||
Reference in New Issue
Block a user