The sed command is one of those commands I have never put enough attention in Linux. A mistake! The sed command (Stream Editor) is a very powerful one to know. It is used to find and replace text patterns. Sed command standard sysntax To replace all instances of Paco with Timo in a file.txt: s/ …
Tag Archives: regex
Regular Expressions (regex) in Linux
Regular Expressions (regex) are one of the most powerful tools for Linux sysadmins when searching logs, parsing configs, or cleaning up files. I found some practical real-life examples you’ll may use on your day-to-day SysAdmin routine. First, I needed to brew a great cup of Catimor coffee variety for more inspiration. Below are some brief …
GREP command overview
The grep command means Global Regular Expression Print. This Linux command is one of the most useful commands out there. Below are some basic examples: grep ‘word’ filenamegrep ‘word’ filename1 filename2 filename3grep ‘string1′ string2’ filenamecat filename | grep ‘something’command | grep ‘something’ Next example, you can search for the user ‘tom’ in the Linux passwd …
