Andrej Bartkoforbartkobartko.hashnode.net·Dec 13, 2022Efficiently Finding and Replacing Text in Multiple Files Using ripgrep and sedcommand rg "some string" | xargs -d "\n" sed -i "s/some string/another string/g" The command searches for the specified string using ripgrep and pipes the results to xargs, which executes the sed command on each line returned by ripgrep. The sed com...DiscussRipgrep
Andrej Bartkoforbartkobartko.hashnode.net·Dec 13, 2022Efficiently Finding and Replacing Text in Multiple Files Using ripgrep and sedcommand rg "some string" | xargs -d "\n" sed -i "s/some string/another string/g" The command searches for the specified string using ripgrep and pipes the results to xargs, which executes the sed command on each line returned by ripgrep. The sed com...DiscussRipgrep