You can direct grep to search through one file or many. You can also pipe in output from some other utility so that you’ll see only the information that you want to see. And, the fact that grep uses regular expressions allows you to perform searches even when you only have an approximate idea of what you’re searching for.
Read more »Matching Literal Text Strings to Locate Data in Shell Scripting
One of the most powerful tools available to you in shell scripting is the ability to search for text strings which highlight the information you need.
Read more »Category: Beginner Tags:
- Login to post comments
grep-2.6 released
grep is a tool to search for strings inside a file. This release fixes an unexpectedly large number of flaws, from outright bugs (surprisingly many, considering this is "grep") to some occasionally debilitating performance problems. Special thanks to Paolo Bonzini for doing most of the heavy lifting.
Read more »Category: End User Tags:
- Login to post comments
Using TCT To Recover Lost Data On Linux Or Unix - Part Two
Part two of a quick-start guide to the recovering deleted data on Linux or Unix partitions. Focus on lazarus from TCT
Read more »Category: Beginner Tags:
- Login to post comments
Using Grep
Global Regular Expression Print is the rather un-catchy full name of grep, the staple of any Linux users toolkit. It is a search tool run from the command line that is evolved directly from Unix, and is so useful it deserved a post of its own.
Read more »Famous Awk One-Liners Explained, Part III
"This is the third and final part of a three-part article on the famous Awk one-liners. This part will explain Awk one-liners for selective printing and deletion of certain lines. See part one for introduction of the series..."
Read more »Category: High End Tags:
- Login to post comments
Famous Sed One-Liners Explained, Part II
"This is the second part of a three-part article on the famous sed one-liners. This part will explain sed one-liners for selective printing of certain lines. See part one for introduction of the series..."
Read more »Category: High End Tags:
- Login to post comments
Using Grep To Streamline Your Shell And Command Line Scripting
Some interesting ways to use grep to shorten your command lines. Not to be confused with efficiency ;)
Read more »Category: Beginner Tags:
- Login to post comments
Using grep and sed to find and replace
This article covers two beneficial Linux tools, grep and sed. If searching for or handling text, grep and sed can increase your efficiency with Linux bash scripting and configuration files. We'll learn how to use these commands and get some helpful tips, too.
Read more »Category: High End Tags:
- Login to post comments
Finding files Part 2 - By Content
Yesterday’s post detailed how you can find files by their name, permissions, time, or other descriptors. But you probably also want to be able to find files based on what is inside them. Grep is a tool that picks up where find left off, and can search inside files (though cannot do the same things that find can).
Read more »- Login to post comments