4 ms·
The program needn't be a shell script invoking awk--you can use a "shebang" line to make the entire thing an awk file. This will help if you use an editor whic
by jzwinck 12y ago
The program needn't be a shell script invoking awk--you can use a "shebang" line to make the entire thing an awk file. This will help if you use an editor which understands awk syntax (for highlighting etc.). Of course in 1981 you probably didn't have such luxuries, but today we can just remove the "exec awk", the outer quotes and $1, and put this as the first line:
#!/usr/bin/awk -f