Well, this is one example about getting stuck...
I need to run the awk command a number of times. I build
a FOR loop like this
for (( i = 800; i <= 50000; i+=100 )) ### Outer for loop ###
do
echo ""
printf " awk '{for (k=1;k<=NF;k++){printf \"%d\"(k==NF?\"\n\":OFS),\$k*k}}' $i.turn > $i.matrix"
done
I added some "\" in the original awk line but it did not work
because the awk script contains this command \n.
How can I keep using \n in this case ? I tried double ( \\n ) but it did not
work either...
Thanks again,
Serg