[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk3.1.0
From: |
Darrel Hankerson |
Subject: |
Re: gawk3.1.0 |
Date: |
Thu, 17 Jan 2002 21:34:20 -0600 |
Martin Palko <address@hidden> writes:
awk ' { FS=":"; print $1 $2 } '
- it uses the delimiter ":" for each line from the input except the frst
one - the first input line is split using the default delimiter " " ...
Read the "Field Splitting Summary" of the gawk manual:
According to the POSIX standard, `awk' is supposed to behave as if
each record is split into fields at the time that it is read. In
particular, this means that you can change the value of `FS' after a
record is read, and the value of the fields (i.e. how they were split)
should reflect the old value of `FS', not the new one.
--Darrel Hankerson address@hidden
- gawk3.1.0, Martin Palko, 2002/01/17
- Re: gawk3.1.0,
Darrel Hankerson <=