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
  • Using the command line in linux - part 4 Dealing with text.... we've looked at a couple of basics on logging in and starting to use the command line and hopefully not feeling too helpless there... we've seen ways to navigate directories and how to find new commands and how to find out more about how to use them.......
  • Mondorescue manually restoring from an afio.bz2 file For several years now, I've used Mondorescue as a backup solution for those customers with a Linux server. It makes for a nice, easily scriptable backup that can go ahead and burn to disc, *(or tape or another pc....) My preferred way of doing this has been a full mondorescue......
  • Recovering a Split BiggieFile from a MondoRescue Backup Once upon a time I wrote of manually extracting a file from a mondorescue backup. Sometimes it's just easier to do that, than have mondorescue go through 30 some cds or dvds just to find one file. (Not to mention the fact that the iso's aren't burned to disc but......
Blog Traffic Exchange Related Websites
  • What Does it Take to Write SEO Centered Articles Practically anyone with the proper skills can write an excellent article but to make that article ideal for use online takes a different set of skills. You not only need to write for your readers but also for the search engines. When your article fails to rank within the search......
  • 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......
  • Convert Prosper XML to CSV Many, Many people have asked me if there was an easy way to get the Prosper XML files as CSV (comma separated values).  In response, I have build a utility that does just that.  I contributed the utility to the Prosper API Open Source Project on SourceForge. With CSV files......
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