I have been in DevOps related jobs for past 6 years dealing mainly with Kubernetes in AWS and on-premise as well. I spent quite a lot …
![post image](/images/blog/linux-1_hu928a111b75a731678aae189a5163bdac_17752_eedd5336be16616ed0b2dcda96bc315e.webp)
How to replace text in lots of file via sed and find
I have recently decided to change the way how my code blocks look like at this blog. This was rather straightforward
change. I needed to exchange “bash" to "
”.
Here is an easy way how this can be achieved via find
and sed
.
find content/english -type f -name '*.md' -exec sed -i '' -e 's|\`\`\`bash|\`\`\`|g' {} +
'