Below you will find pages that utilize the taxonomy term “sed”
November 28, 2023
Using Perl-Rename For File Substitution
I tried to use sed to rename filenames but found it rather cumbersome. sed is great when used to edit the content of a file which you can find some examples I created here, but I found this handy program that can do the same but for filenames instead.
Installed on my Arch, BTW, system I already had the program called rename which is not the same as the one we need called perl-rename.
June 1, 2022
That's What I Sed
sed (Stream EDitor) is a super simple program that can be used to replace text for another in a file. Let’s first view the contents of the file greetings.txt with cat.
$ cat greetings.txt hello wilkommen hola We can see that the words hello, wilkommen, and hola exist in the text file greetings.txt.
If we wanted to swap out hello for bonjour using sed we could run:
$ sed -i 's/hello/bonjour/' greetings.