
November 24th, 2011, 06:25 PM
|
|
|
Why not use nawk for the while thing?
(not tested!)
Code:
nawk -F\| '{printf(";%s;",$1)}' $FILE
You may need to change the ;s to %;
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
|