Posts

Showing posts with the label Linux command line tools - grep and sed

Linux command line - Working with text using grep and sed

Image
Hi, I am Malathi Boggavarapu working at Volvo Group and i live in Gothenburg, Sweden. I have been working on Java since several years and had vast experience and knowledge across various technologies. In this post we discuss about Linux commands  grep and sed and the corresponding options that are helpful at work. When working with text on a linux system, we often need to search for particular string in log file or in some code or in some configuration file. Well there is always an option to open the file and look through it but there is a better tool to do. That is grep command. First let's create a text file with some text in it and we work on grep command and it's options using the text file content. I prefer to use Cygwin shell to execute the commands of Linux. But it is upto you to determine which shell you want to use. Open the shell and create a text file with some content in it. I added the following text to the grep_demo.txt file. Pleas