Re: need to trim spaces from sqlplus output

  • From: "Radoulov, Dimitre" <cichomitiko@xxxxxxxxx>
  • To: andrew.kerber@xxxxxxxxx
  • Date: Tue, 18 Jan 2011 18:02:24 +0100

On 18/01/2011 17:50, Andrew Kerber wrote:
Does anyone have a unix script to trim spaces prior to the column separators in sqlplus output, ie, I have output like his:

LAST NAME |FIRST NAME  |BIRTHDAY
Kerber          |Andrew           |Aug01

That I want to look like this:

LAST NAME|FIRST NAME|BIRTHDAY
Kerber|Andrew|Aug01


sed 's# *|#|#g' infile



Regards
Dimitre

--
//www.freelists.org/webpage/oracle-l


Other related posts: