From 4ea21be42b019a2df8008582c37ce16ab763a9b2 Mon Sep 17 00:00:00 2001 From: henk Date: Wed, 24 May 2023 20:32:21 +0200 Subject: [PATCH] 2023-05-24 20:32:21 --- linux/findreplaceinfiles.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 linux/findreplaceinfiles.txt 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 +