[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] problem with awk script
On Thu, 2 Aug 2001, Giuseppe Tringali wrote:
> I've saved it as end-to-end.awk. At the prompt I have typed:
>
> awk -f end-to-end.awk out.tr > end.tr
>
> I get this error message:
>
> awk: end-to-end.awk:1: BEGIN {
> ' in expression.awk:1: ^ Invalid char '
>
> Where is my mistake?
looks like cutting and pasting from a browser window introduced a
space, or there's something weird with CR/LF conversion.
(if you don't cut and paste from a window, you get to deal with all
the > turning into > - gah, HTML.)
try playing with awk/gawk and other versions; awk's almost as bad as
TeX for lack of standard features.
L.
<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>