Magic Banana grades my homework constructively:
> ... redirect the standard output of 'grep '[0-9]$' to a file before a pipe: that is wrong

Here's my mistake: ... | grep '[0-9]$' > intermediate.txt | awk ...
It should have been: ... | grep '[0-9]$'- | awk ...
And Magic Banana's last version of the command did exactly this as accepted by awk.

> ... Because there is an odd number of single quotes, ...

I have a awful time finding the orphans ... awk senses a missing } which I've yet to find in my long script.

I've tried to clean things up:

time tr -sc 0-9\\n ' ' < CPV-GB-OneCol0-6192019.txt | awk '{ k = 0; for (i = 0; k < 4 && ++i Output-TwoCol.txt

This is not yet working, as awk doesn't recognize myscript01.awk or myscript02.awk, which are both in the current directory and were made executable with "chmod +x myscrip??.awk" according to the referenced HTML link. Taking the forward slashes out doesn't help; not does removing the hidden-file dot character do those scripts need a preceding -f ?

As in Fortran, the error statements only reflect the consequence of errors, not their cause ...



Reply via email to