]> begriffs open source - freertos/blob - .github/scripts/find_replace.sh
removed the copyright and license header for select files (#815)
[freertos] / .github / scripts / find_replace.sh
1 #!/bin/bash
2 old_text=$1
3 new_text=$2
4 echo "Old text: ${old_text}"
5 echo "New text: ${new_text}"
6 grep -rl "${old_text}" . | xargs gsed -i -e '1h;2,$H;$!d;g' -e "s/${old_text}/${new_text}/g"