Search Results

Search: Posts Made By: rmerrird
1,734
Posted By rmerrird
The input is included in the "," delimited output that - hopefully - showed up on my post
The 5 fields that are input by the user can be 4 or 3 or 2 or 1 field. That is the "rub". If the user only enters 1 field then the awk command must still have the other 4 fields in it. So I think....
1,734
Posted By rmerrird
awk command to search based on 5 user input fields
Field1=””
Field2=””
Field3=””
Field4=””
Field5=””

USER INPUT UP TO 5 FIELDS

awk -F , '{ if ( $3 == Field1 && $6 == Field2 && $8 == Field3 && $9 == Field4 && $10 == Field5)...
Showing results 1 to 2 of 2

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