Hi,
I have a awk script (awk_script.awk) which takes data file (data_file - pipe seperated data) as input and generates another file in a particular format...
Here is the command i use -
nawk -f awk_script.awk data_file
I need to -
1. Know the name of data_file inside my awk_script.awk
2. Write a small function in awk_script.awk to which I can pass some arguments....
Please see if you could help... ?
Thanks,
Sachin
I have a awk script (awk_script.awk) which takes data file (data_file - pipe seperated data) as input and generates another file in a particular format...
Here is the command i use -
nawk -f awk_script.awk data_file
I need to -
1. Know the name of data_file inside my awk_script.awk
2. Write a small function in awk_script.awk to which I can pass some arguments....
Please see if you could help... ?
Thanks,
Sachin