Last active
December 30, 2024 22:00
-
-
Save Akczht/e7f3b67110ba1a948c4851260e45cd9f to your computer and use it in GitHub Desktop.
Revisions
-
Akczht revised this gist
Dec 30, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/bash set -e # Directory to process (current directory) DIRECTORY="$PWD" -
Akczht renamed this gist
Dec 30, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Akczht created this gist
Dec 24, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ #!/bin/bash set -ex # Directory to process (current directory) DIRECTORY="$PWD" # Loop through all .ass files in the directory for file in "$DIRECTORY"/*.ass; do # Check if the file exists (to avoid issues if no .ass files are present) if [[ -f "$file" ]]; then echo "Processing: $file" # Use sed to replace "Arial" with "Remi Script" and save changes in-place sed -i '' 's/Arial/Remi Script/g' "$file" echo "Updated font in $file" else echo "No .ass files found in $DIRECTORY." fi done echo "Font replacement completed."