The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-09-2007
mahek_bedi mahek_bedi is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 6
How to remove trailing spaces

Hi,

I have a file like this

(ADD_MONTHS((Substr(Trim(BOTH FROM Translate(Maximum(closeDa
------------------------------------------------------------
2007-06-30 00:00:00

I have a requirement where i need just the date.

When i do: tail -1 filename|tr -s ""
my problem doesnot solve.I am getting leading spaces before the date.

I need an output like: 2007-06-30 00:00:00

Can anybody help me??

-- Mahek