From: Lal, Neeraj (Neeraj.Lal@Pfizer.com)
Date: Tue Jul 02 2002 - 13:28:26 EDT
Thanks
to BILL
here is solution
If you want all spaces to be turned into a single space, use this:
cat myfile |while read
do
echo $REPLY
done
To remove all white space (tabs, spaces in any combination):
cat myfile |while read
do
echo $REPLY | tr -d " "
done
Bill was quick in response
Thanks again
Neeraj Lal
-----Original Message-----
From: Lal, Neeraj [mailto:Neeraj.Lal@pfizer.com]
Sent: Tuesday, July 02, 2002 12:45 PM
To: 'hpux-admin@DutchWorks.nl'
Subject: [HPADM] remove the sace charcter in the file
Hi Admins
I have a samll script question and I know it can be done thru sed but I am
not able to get the syntax right .
I have a file which looks like this
00501078202102 2002 00000102686102
00000094243000000102686
00501078214102 2002 00000102686102
00000094243000000102686
00501100003102 2002 00000004293102
00000000000000000004293
I want to remove the tab char or you can say sapce from the file
TIA
I will summarise
Neeraj
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search) -- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:15 EDT