RE: Unix Commands
- From: Stephane Faroult <sfaroult@xxxxxxxxxxxx>
- To: <AbhishekS@xxxxxxxxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>, "'Magni Fabrizio'" <Fabrizio.Magni@xxxxxxxxx>
- Date: Tue, 23 Nov 2004 10:52:18 +0100
Not available under all systems. This is likely to be more portable :
1) vi convert
2) type :
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@xxxxxxxxx>
sent:
Hi,
unix has two converion utilities:
unix2dos and dos2unix.
Have you already tried them?
Regards
Fabrizio
>-----Original Message-----
>From: oracle-l-bounce@xxxxxxxxxxxxx[1]=20
>[oracle-l-bounce@xxxxxxxxxxxxx[2]','','','')">oracle-l
-bounce@xxxxxxxxxxxxx[3]]On Behalf Of Abhishek Saxena
>Sent: Tuesday, November 23, 2004 8:32 AM
>To: oracle-l@xxxxxxxxxxxxx[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@xxxxxxxxxxxxxxx[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@xxxxxxxxxxxxx','','','')
2 javascript:parent.opencompose('<a href=
3 javascript:parent.opencompose('oracle-l-bounce@xxxxxxxxxxxxx','','','')
4 javascript:parent.opencompose('oracle-l@xxxxxxxxxxxxx','','','')
5 javascript:parent.opencompose('abhisheks@xxxxxxxxxxxxxxx','','','')
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-l
Other related posts: