sed utility can be used to print the contents of a
file, substitute a line (or multiple lines), and then save the file. In
sed can substitute a line or multiple lines in a file and perform an in-place update of that file.
sed invocation when substituting
Continue reading “Manipulating text with sed”
$ sed 's/foo/bar/' inputfile
Grep is a very important & powerful Linux commands. It stands for ‘Global Regular Expression Print’ & is used for matching & printing a search pattern or a regular expression from a single or multiple text files. It will look for the pattern if the mentioned files & will than print the result on screen or to an output file.
In this tutorial, we are going to learn to use grep command with examples. Continue reading “How to effectively use the GREP command”