Incoming from Andrew Graupe:
> Shawn Grover wrote:
> 
> >Found this on Slashdot today.....
> >
> >http://linux.slashdot.org/linux/04/07/29/139218.shtml?tid=162&tid=117&tid=190&tid=130&tid=106
> >
> This is one of those stories people will read, say "that's interesting" 
> and then never do anything about.  I don't feel a compelling need for 
> more features I will never use.  As it sits now, I pretty much only use 
> basic wildcards (*,?) and tab completion.

You're missing a whole world of power then.  Regular Expressions are
one of the fundamental building blocks you have to work with in the
shell.

Here's one of my cronjobs:

  find /home/keeling -type f -exec ls -alF {} \; | \
     egrep -v '/Mail/|archive_Mail|/fonts/|/grf/|/dwn/199[0-9]/' | \
     nice sort -n +4 | tail -100

[That just mails me a list of the 100 biggest files in my home dir,
excluding many I'm not concerned with.]

egrep lets you do 'this|that|the other'

When you can use a range like [0-9], you don't need to have
'/dwn/1990/' and '/dwn/1991/' ...

Those just touch on what you can do with some of these.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)               http://www.spots.ab.ca/~keeling 
- -

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to