I have a file where every line is a new customers information, such as
Pop corn, [email protected], 50, 200
I am currently trying to see if it is possible to use a awk/gawk script to assign each column to a variable and then pipe those variables to sed to be substituted into a template? I would be running both awk/gawk and sed from within a bash script. What is a good implementation I could follow to get this done? I'm trying not to use grep, because I'm trying to learn how to cohesively use awk/gawk, sed, and bash scripts together or perl since I haven't learned it yet.
awkvariable?awkvariables if it was possible (which I now know is), if it were not then I would have tried using variables declared with in the bash script and exporting them toawk.sed, or that you don't need the shell variable to do your templating, or evenawk. Since you only give minimal info about what it is you actually want to do ("substitute (something) into a template"), it's difficult to give a "good implementation" for anything other than the parsing of the file that you talk about at the start.