Timeline for Bash Script to take a file as input and run awk command on another file
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 23, 2018 at 1:02 | comment | added | cas |
that's odd. what output are you getting from the sample data you gave? I'm getting both records (without the lines of * * * *...). The first record matches hostAbC and the second matches hostMos. BTW, there is a loop - every awk script is an implicit loop reading its input file(s)/stdin.
|
|
| Jan 22, 2018 at 16:20 | comment | added | Juan Aguilera | Thank man! That works but it is only hitting on the last entry of what I have in my $FILE1, it is not looping through all 25. Maybe we need a loop in there? | |
| Jan 22, 2018 at 16:19 | vote | accept | Juan Aguilera | ||
| Jan 21, 2018 at 4:24 | history | answered | cas | CC BY-SA 3.0 |