Am 15.12.2012 22:22, schrieb Peter Bex:
On Sat, Dec 15, 2012 at 10:16:55PM +0100, Peter Bex wrote:A simple sed(1) _expression_ should do the trick: sed -E 's/ +/ /g' old-file > new-fileI just remembered where I could check, and the GNU sed equivalent is: sed -r 's/ +/ /g' old-file > new-file Sorry for the confusion. With sed as startingpoint I figured it out. Those 3 steps make the input files consumable for COPY
How would you manage if one or more of those parameters contained
blanks in some cases? The real column formats are ( TEXT, TEXT, DATE, TIME ). |