Nov 14, 2002 #1 lambros Programmer Oct 10, 2002 42 US Hi, If I have something like - if ($0 ~ /Error/) how can I assign this line a line number; is something like - nl -nrz -v5 -i5 possible to do to this?
Hi, If I have something like - if ($0 ~ /Error/) how can I assign this line a line number; is something like - nl -nrz -v5 -i5 possible to do to this?
Nov 14, 2002 1 #2 vgersh99 Programmer Jul 27, 2000 2,146 US if ($0 ~ /Error/) { arr[$0]=FNR } or if ($0 ~ /Error/) { arr[FNR]=$0} depending on WHAT you want to do vlad +----------------+ | #include<disclaimer.h> | +----------------+ Upvote 0 Downvote
if ($0 ~ /Error/) { arr[$0]=FNR } or if ($0 ~ /Error/) { arr[FNR]=$0} depending on WHAT you want to do vlad +----------------+ | #include<disclaimer.h> | +----------------+