G. Matthew Rice ha scritto: > On Tue, Aug 16, 2011 at 8:48 PM, ross brunson <[email protected]> wrote: > >> I like some light RE's and focusing on the variations of grep can be a >> marvelous way to intro someone to RE's without hardcore shovel work, >> somehow it's more understandable when you can easily see the results >> of what you're talking about because grep finds what you're showing >> them it should find in the files. >> > Or in other things. In tandem with Anselm's pipeline suggestion, > find|grep are a great combo. >
I agree. I'd definitely leave out sed, awk, perl and all the other RE heavyweights. A LinuxBasics candidate should just be able to extract lines containing some string out o a file and count them. No substitutions, no mangling, no abracadabra done to lines or strings. At most I'd consider basic operators as ^, $, . and *, and maybe have a | tr a-z A-Z as an easy way to uppercase a grep output. Opps, this entails also the explanation of what character lists are. Which easily brings you to consider the effects of localization on char lists and sorting operators, that are not among the LinuxBasics Objectives. Keeping it easy is not that easy! :-) Regards, -- Alessandro Selli Tel: 340.839.73.05 http://alessandro.route-add.net, VOIP: sip:[email protected] Chiave PGP/GPG key: EC885A8B _______________________________________________ lpi-examdev mailing list [email protected] http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev
