commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
8 lines
188 B
Bash
Executable File
8 lines
188 B
Bash
Executable 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"
|
|
|