This commit is contained in:
Luk Lu
2022-04-30 10:01:20 +08:00
parent 7def32e1ef
commit 6d9f784b14
5 changed files with 45 additions and 468 deletions

12
file-patch.sh Executable file
View File

@@ -0,0 +1,12 @@
PREFIX=%miki
SUFFIX=miki%
echo sed -i '' "s/$/$SUFFIX/"
if [[ "$(uname)" = "Darwin" ]]
then
LC_CTYPE='C' sed -i '' "s/^/$PREFIX/" $1
LC_CTYPE='C' sed -i '' "s/$/$SUFFIX/" $1
else
sed -i "s/^/$PREFIX/" $1
sed -i "s/$/$SUFFIX/" $1
fi