In this article, we’ll go through the command-line tools grep, sed, and awk. In particular, we’ll study the differences in functionality among them. 2. Background When it comes to text processing in Linux, the three tools that come in pretty handy are grep, sed, and awk. Although ...
AWK (awk) is a text-processing domain-specific dialect commonly used during extracting data and presentation. It’s filtration, like sed as well as grep, but most Unix-like packages provide it as a default function. The AWK languages are a data-driven scripting language that consists of a c...
Above highlighted are the differences between‘grep’,‘egrep’and‘fgrep’. Apart from difference in the set of regular expressions used, and speed of execution, rest command line parameters remain same for all the three versions of grep and even instead of “egrep” or “fgrep”, “grep -E...
This is a key difference between su and sudo. Su switches you to the root user account and requires the root account's password. Sudo runs a single command with root privileges -- it doesn't switch to the root user or require a separate root user password. Ubuntu vs. Other Linux Distri...
Key Difference Between Localhost and 127.0.0.1 Whilelocalhostand127.0.0.1ultimately refer to the same thing (your own machine), there are a few differences between them: Format: localhostis a hostname. 127.0.0.1is an IP address. Usage:
For finding difference between two versions of a file on Linux, you can use any one of the 4 tools explained in this article — diff, colordiff, wdiff, and vimdiff. The screenshots provided for these tools shows the difference between the following two empfile1.txt and empfile2.txt. ...
The diff command output can get little confusing to read when you diff two files that has lot of differences. Wouldn’t it be nice to view the file differences visually? vimdiff utility gives a better visual feeling of differences between files as explai