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
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."