FAQ : How to use grep command to remove blank lines from file Answer: To remove the blank lines from file, use the given below syntax grep -v ‘^$’ /path/of/file-name In above command, -v = Invert the sense of matching, to select non-matching lines ^$ = It is regex. ^ means start with and $ […]
Linux Commands
cat,sed and awk commands to display file contents
With the help of cat, sed and awk command you can read or display the file contents. Learn about the method in this article.
awk command to print columns from file
In this tutorial we will learn, how to use awk command to print columns from file. This tip is often used by Unix/Linux System Administrator. AWK Command Awk is one of the awesome tool for processing the rows and columns.It also has feature to search keywords/strings . Awk command is widely used by Unix/Linux users […]
How to list users above or below particular user id
In rare cases, you will find sometimes we need to list users above or below particular user id. Such requirement mostly come when you are playing around users related troubleshooting. For an example, we want to list the users which are above userid 500 in Linux System. The user related information like username and user […]
awk command to search keyword or strings in file
In this tutorial we will learn, awk command to search keyword or strings in file . We will search single as well as multiple keyword with awk Command. This is a commonly used tips by most of the System Admin. Whereas the same result you can also find by using grep command. Introduction of AWK […]
grep command to find multiple strings or keyword from file
This post explains about grep command to find multiple strings or keyword from file. In Linux or Unix like operating system, the grep command utility is widely used. Grep is a command-line utility for searching plain-text data sets for lines matching a regular expression. Grep was originally developed for the Unix operating system, but is […]
Recent Comments