diff --git a/linux/findreplaceinfiles.txt b/linux/findreplaceinfiles.txt new file mode 100644 index 0000000..b45cb76 --- /dev/null +++ b/linux/findreplaceinfiles.txt @@ -0,0 +1,7 @@ +# with perl +perl -pi -w -e s/apt/APT/g file.sh +perl -pi -w -e s/.jpg/.jpg.webp/g file.sh +# with sed + +sed -i 's/SEARCH_FOR/REPLACE_WITH/g' file.txt +