Hey,
I have the following for-loop:
I want to pipe the filename from cat to awk. But it doesn't work. Has anyone an idea?
Thanks for any help,
Ergy
I have the following for-loop:
Bash:
for i in 0_bla_*
do
cat $i |awk -v filename=$filename '{if (NR>11) {anz=anz+1}}END{printf("%3$s %1$s %2$s \n", NR-1, anz, filename)}' > $i.dat
done
I want to pipe the filename from cat to awk. But it doesn't work. Has anyone an idea?
Thanks for any help,
Ergy