更新排版

This commit is contained in:
programmercarl
2024-04-24 16:55:33 +08:00
parent baf021f2f5
commit ffbeed0971
224 changed files with 658 additions and 624 deletions

View File

@ -7,21 +7,35 @@
#########################################################################
#!/bin/bash
# <p align="center">
# <a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">
# <img src="../pics/训练营.png" width="1000"/>
# </a>
# <p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们收益!</strong></p>
# <img src="../pics/网站星球宣传海报.jpg" width="1000"/>
# <p align="center">
# <a href="https://programmercarl.com/other/kstar.html" target="_blank">
# <img src="../pics/网站星球宣传海报.jpg" width="1000"/>
# </a>
for i in *.md
do
if [[ $i != 'README.md' ]]
then
# 移除开头
# sed -i '' '/align/d;/\"\"><\/a>/d;/<\/p>/d;/<\/a>/d;/20210924105952.png/d;/_blank/d' $i
# # 移除结尾
# sed -i '' '/--------------/d;/训练营/d;' $i
# # 添加开头
# # 记得从后向前添加
# ex -sc '1i|<p align="center"><strong><a href="https://mp.weixin.qq.com/s/tqCxrMEU-ajQumL1i8im9A">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们收益!</strong></p>' -cx $i
# ex -sc '1i|</a>' -cx $i
# ex -sc '1i| <img src="../pics/训练营.png" width="1000"/>' -cx $i
# ex -sc '1i|<a href="https://programmercarl.com/other/xunlianying.html" target="_blank">' -cx $i
# ex -sc '1i|<p align="center">' -cx $i
sed -i '' '/align/d;/\"\"><\/a>/d;/<\/p>/d;/<\/a>/d;/20210924105952.png/d;/_blank/d' $i
# 移除结尾
sed -i '' '/训练营/d;/网站星球宣传海报/d' $i
# 添加开头
# 记得从后向前添加
ex -sc '1i|<p align="center"><strong><a href="./qita/join.md">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们受益!</strong></p>' -cx $i
ex -sc '1i|</a>' -cx $i
ex -sc '1i| <img src="../pics/训练营.png" width="1000"/>' -cx $i
ex -sc '1i|<a href="https://www.programmercarl.com/xunlian/xunlianying.html" target="_blank">' -cx $i
ex -sc '1i|<p align="center">' -cx $i
# echo '## 其他语言版本' >> $i
# echo '\n' >> $i
# echo 'Java' >> $i