bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it bug ? as it's so confusing


From: Budi
Subject: Is it bug ? as it's so confusing
Date: Sat, 1 May 2021 06:08:02 +0000

How to have awk to get range or boundary of the beginning to a pattern
tried 1 fails as

$ echo -e 'a\nb\nc\nend\ne\nf\ng\n' |awk '1,/end/ {print $0}'
a
b
c
end
e
f
g
this for all as pattern works

$ echo -e 'a\nb\nc\nend\ne\nf\ng\n' |awk '/b/,/end/ {print $0}'
b
c
end
but back to question how to get range or boundary of the beginning to a pattern?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]