glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Re: Tutorial translation isn't detected


From: Kai Antweiler
Subject: Re: [glob2-devel] Re: Tutorial translation isn't detected
Date: Tue, 12 Jan 2010 21:01:20 +0100

> Well, this looks interesting. But the
> resulting file doesn't look exactly right, as it only gives the lines
> containing ",de" and the lines from arFile.txt in the right order.

You are right.
The "print $0" was at the wrong place it must be:

# gawk '{if (FILENAME == "arFile.txt") {a[NR]=$0} else {print $0;if
($0 ~ /,de/) {print a[++i] }} }' arFile.txt tutorial_part1.sgsl >
tutorial_part1.sgsl.new

-- 
Kai Antweiler




reply via email to

[Prev in Thread] Current Thread [Next in Thread]