fixing my code

This commit is contained in:
Archie 2024-09-29 01:44:31 +00:00
parent fe279d97bd
commit afc5064a7b
1 changed files with 1 additions and 6 deletions

View File

@ -1,11 +1,6 @@
#!/bin/bash #!/bin/bash
#Achie's Cute little windows to arch script, I HATE WINDOWS!!! #Achie's Cute little windows to arch script, I HATE WINDOWS!!!
if [ -z "$1" ]; then find "." -type f ! -name '.*' -exec sed -i 's/windows/arch/g' {} +
echo "Usage: $0 <directory>"
exit 1
fi
DIRECTORY="$1"
find "$DIRECTORY" -type f -exec sed -i 's/windows/arch/g' {} +
echo "Made the code better and made it work." echo "Made the code better and made it work."
echo "Love, Archie" echo "Love, Archie"