[ale] HELP Scripting gurus
Fletch
fletch at phydeaux.org
Wed Apr 24 10:15:42 EDT 2002
>>>>> "Ben" == Ben Coleman <oloryn at benshome.net> writes:
Ben> On 24 Apr 2002 09:38:03 -0400, Fletch wrote:
>>>>>>> "Thomas" == Thomas Mazukna <Mazukna> writes:
>>
Thomas> HELP! need to find out lines in a text file where chars
Thomas> 57-58 = "12" awk or sed is capable of doing this ?
>> perl -lane 'print if substr($_,57,2) eq "12"'
Ben> Why the l and a switches?
[...]
Habit. :)
I often use -lane (or -pale) since I'm a command history junky
and its less to edit while refining into what I really need if I start
it off with it in there already.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
770 933-0600 x211(w) | scary questions." -- Jules =(___)=
770 294-0820 (m) | U
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list