Neat grep intro



Linuxgangster.org (??) has a good article up on the powerful grep command. GREP is one of the most useful command line tools in linux (really, there are so many it’s hard to choose, but this is one I use more frequently than most others…) grep can stand on it’s own to look for a term in many files (for example)

grep soughtafterterm *.txt

it will display which line numbers and which files it appears in.


It can do more sophisticated searches though, accept command output from standard in… etc. (ls | grep filename) is one I do a fair amount. If you get the hang of grep you’ll start to get an idea of why people think storing documents in some sort of text readable format is a good idea (think xml…).

A little off topic… but… I once had someone ask why xml file formats were such a big deal. I told them that for the average user it may not be, but there are many great and flexible ways to search through plain text readable files. (Or manipulate plain text readable files.) Not to mention the ability to salvage your plain text if the word processing program is no longer supported.

Related Posts

Blog Traffic Exchange Related Posts
  • Converting Audio to PCM Wave format To make sure you've go the idea that mplayer is really a swiss army knife for media files that can do most anything. I wanted to get a post JUST on this idea. Any media format that mplayer recognizes it can dump the audio to the most common and readable......
  • "rm -f *" undelete I really ought to find a way to alias "rm -f *" to "rm -i" IF the time is between 1 AM and 7 AM.... Last night I was working late (2:30AM or so when this happened). I had just made a few "refinements" to some of my audio streaming......
  • Epson Perfection 1650 scanner and Windows XP Limited User account "We tried scanning and all that happened was the lamp moved back and forth.... Nothing else happened." That was the description I had and the request to see why the scanner was broken. It hadn't been long since the Epson scanner had been hooked up to a new XP Pro......
Blog Traffic Exchange Related Websites
  • A beginner's guide to a document filing system When it came to filing systems, I was a complete newbie!  I decided to do something about it and realized I didn’t even know what to look for if I had to shop  for my filing needs! If you are like me, this primer will be of great help. There......
  • Why Selling Coin at Auction is So Popular Coin collecting is a very popular hobby for many people. This is because there are different things which attract people to it. For many, it is all about the history of the coins which attract them to the hobby. They like being able to talk about the different coins and......
  • Article Marketing Explained! One way of promoting your website and product can be achieved for FREE. As an additional bonus, this “free” method can boost your sites and sales, doubling and even tripling your income. Articles. One of the easiest ways to promote your website in order to generate traffic and increase your......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site