Hi All,
I'm quite new to awk...
I did search on this forum but did not find a solution to my problem..
The problem i am having is how to write this in awk (or sed ):
- If a line does not end with a parenthese '(', join every following line till one begining with a ')'-
---------- Input
...
<td width="111">
En cours d'acheminement.</td>
<td width="100">
Bordeaux
(
33
100
)</td>
</tr>
<tr class="tabtxt">
<td width="50">
...etc
---------- Desired output
...
<td width="111">
En cours d'acheminement.</td>
<td width="100">
Bordeaux
(33100)</td>
</tr>
<tr class="tabtxt">
<td width="50">
...etc
Any help would be greatful.
Regards
I'm quite new to awk...
I did search on this forum but did not find a solution to my problem..
The problem i am having is how to write this in awk (or sed ):
- If a line does not end with a parenthese '(', join every following line till one begining with a ')'-
---------- Input
...
<td width="111">
En cours d'acheminement.</td>
<td width="100">
Bordeaux
(
33
100
)</td>
</tr>
<tr class="tabtxt">
<td width="50">
...etc
---------- Desired output
...
<td width="111">
En cours d'acheminement.</td>
<td width="100">
Bordeaux
(33100)</td>
</tr>
<tr class="tabtxt">
<td width="50">
...etc
Any help would be greatful.
Regards