Sign in
pigweed
/
third_party
/
github
/
FreeRTOS
/
FreeRTOS-Kernel
/
2dfdfc4ba4d8bb487c8ea6b5428d7d742ce162b8
/
.
/
.github
/
scripts
/
find_replace.sh
blob: c7ee7965c910045d8b32c0808f3c30a80a066125 [
file
]
#!/bin/bash
old_text
=
$1
new_text
=
$2
echo
"Old text: ${old_text}"
echo
"New text: ${new_text}"
grep
-
rl
"${old_text}"
.
|
xargs gsed
-
i
-
e
'1h;2,$H;$!d;g'
-
e
"s/${old_text}/${new_text}/g"