16 lines
725 B
Bash
16 lines
725 B
Bash
#!bin/bash
|
|
# replace file content 4566.com with 4566.com
|
|
find . -type f -exec sed -i 's/4399\.com/4566\.com/g' {} \;
|
|
# replace file content 4566.json with 4566.json
|
|
find . -type f -exec sed -i 's/4399\.json/4566\.json/g' {} \;
|
|
# replace file name 4566.json with 4566.json
|
|
find . -name '4399\.json' -exec bash -c 'mv $0 ${0/4399/4566}' {} \;
|
|
# add script relocation after tag <head>
|
|
find . -name *.html -exec sed '/<head>/r relocation.txt' {} \;
|
|
# replace a10.com
|
|
find . -type f -exec sed -i 's/www\.a10\.com/www\.4566\.com/g' {} \;
|
|
# replace directories with 4399
|
|
find . -name '*4399' -exec bash -c 'mv $0 ${0/4399/4566}' {} \;
|
|
# replace directories path with 4399
|
|
find . -type f -exec sed -i 's/\.\/4399/\.\/4566/g' {} \;
|