Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix Commands
Not available under all systems. This is likely to be more portable :
sed 's/^M$//' $1 >&1</FONT></P>
Note that the proper way to type '^M' is not typing two characters as I am doing here but first keying ctrl+v, then hitting 'return' Save the file
3) chmod u+x convert
4) ./convert dos_file >unix_file
Regards,
Stephane Faroult
RoughSea Ltd
http://www.roughsea.com
On Tue, 23 Nov 2004 10:22 , 'Magni Fabrizio' <Fabrizio.Magni_at_rasnet.it> sent:
Hi,
unix has two converion utilities:
unix2dos and dos2unix.
Have you already tried them?
Regards
Fabrizio
>-----Original Message-----
>From: oracle-l-bounce_at_freelists.org[1]=20
>[oracle-l-bounce_at_freelists.org[2]','','','')">oracle-l
-bounce_at_freelists.org[3]]On Behalf Of Abhishek Saxena
>Sent: Tuesday, November 23, 2004 8:32 AM
>To: oracle-l_at_freelists.org[4]
>Subject: Unix Commands
>=20
>=20
>Hi Friends
>DO YOU HAVE ANY APPLICATION OR ANY UNIX COMMAND etc. WHICH=20
>CAN CONVERT =3D
>THE CR-LF form a DOS format TEXT FILE AND CONVERT IT TO UNIX=20
>FORMAT TEXT =3D
>FILE (i.e. only LF)?=3D20
>=20
>The QUESTION IS --->
>HOW TO CONVERT A DOS TEXT FILE (Which contsins the =3D
>CarriageReturn-LineFeed) AT THE END OF EACH LINE, INTO A UNIX TEXT =3D
>FORMATTED FILE, WHICH CONTAINS ONLY A LineFeed.=3D20
>=20
>With Best Wishes & Prayers,
>Abhishek Saxena.
>Mail - abhisheks_at_kpitcummins.com[5]
>Tel - +91 20 25458277.
>Mob - +91 20 33306103.
>www.kpitcummins.com[6]
>(A SEI CMM Level 5 Company)
>=20
>=20
>--
>http://www.freelists.org/webpage/oracle-l[7]
>=20
-- http://www.freelists.org/webpage/oracle-l[8] --- Links --- 1 javascript:parent.opencompose('oracle-l-bounce_at_freelists.org','','','') 2 javascript:parent.opencompose('<a href= 3 javascript:parent.opencompose('oracle-l-bounce_at_freelists.org','','','') 4 javascript:parent.opencompose('oracle-l_at_freelists.org','','','') 5 javascript:parent.opencompose('abhisheks_at_kpitcummins.com','','','') 6 modules/refer.pl?redirect=http://www.kpitcummins.com 7 modules/refer.pl?redirect=http%3A%2F%2Fwww.freelists.org%2Fwebpage%2Foracle-l 8 modules/refer.pl?redirect=http%3A%2F%2Fwww.freelists.org%2Fwebpage%2Foracle-l -- http://www.freelists.org/webpage/oracle-lReceived on Tue Nov 23 2004 - 03:38:08 CST
![]() |
![]() |