fixengineer
Technical User
Everything I read seems to deal with fixed amount of fields, but what if the amount of fields change? How can I search for a string in ALL fields(not a specific one like $1 $3) and display only that field?
If awk can't do it I'm thinking that maybe I can transfer the fields to positionals and then do a for loop that "ins" the positionals and checks if it matches a string, then stops once it finds the string and declares that the target field. There has to be an easier way though.
Thanks.
If awk can't do it I'm thinking that maybe I can transfer the fields to positionals and then do a for loop that "ins" the positionals and checks if it matches a string, then stops once it finds the string and declares that the target field. There has to be an easier way though.
Thanks.