Search Results

Search: Posts Made By: jimmyf
6,818
Posted By jimmyf
I got it to work!!! awk -v header="Dog" ' ...
I got it to work!!!
awk -v header="Dog" '
BEGIN { FS=" "; c=0 }
NR == 1 { for (i=1;i<=NF;i++) { if ($i==header) { c=i }} }
NR > 1 && c>0 { print $c }
' dogs.log vbe, I think it was the fear of...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 10:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy