Skip to content

Instantly share code, notes, and snippets.

Avatar
❇️
All in Cloud Native 云原生

Jimmy Song rootsongjc

❇️
All in Cloud Native 云原生
View GitHub Profile
View sed-http-url-replace.sh
#!/bin/bash
# replace URL
seperator=""
config="filename"
#config style
#https://a.com→https://b.com
destination="destination"
for line in `cat $config`;do
echo $line
before=`echo $line|cut -d $seperator -f1|sed 's#\/#\\\/#g'`