/
clang
/
FreeRTOS-Kernel
Обзор
Документация
Войти
/
clang
/
FreeRTOS-Kernel
Код
Вики
Пакеты
0
Релизы
0
Аналитика
main
.github/scripts/find_replace.sh
6 строк
187 B
Paul Bartell
Normalize line endings and whitespace in source files
30 ноя 2022, 02:38
30 ноя 2022, 02:38
01820d3
Код
Авторство
О чём код?
#!/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"