Linux
- 24 September
vi show line numbers in linux
In this post, we will see how to show/hide line number in vi/vim text editor. Let’s say you are working on any shell script and you are debugging an issue. In this scenario, line number can help you to debug issue better. Here are the steps to show line numbers in vi/vim text editor. $ […]
- 24 September
awk substr example
In this post, we will see how to use awk substr to select substring. awk command has a lot of useful functions. One of them is awk substr function. awk substr function is useful to select substring from a string. Syntax awk(string,x,y) Where String is input string. x is starting position in string(index starts from […]
- 23 September
grep multiple Strings in linux
In this post, we will see how to grep multiple Strings in linux. Let’s say your application is deployed on linux machine and you need do analysis of log file and you need to find lines with the specific words in it. For example: you want to find all the lines with "WARNING" or "DEBUG" […]