Dos2Linux

Alexios Chouchoulas alexios at vennea.demon.co.uk
Wed Mar 18 11:20:10 EET 1998


On Mon, 16 Mar 1998, Mesindianos Konstantinos wrote:

> Gia sas paidia,
> 
>             Exw kapoia text arxeia pou einai se DOS kai 8elw na ta kanw
> se LINUX.
>             Otan douleba se UNIX eipirxe to arxeio dos2unix kai to
> unix2dos alla edw den ta briskw ,mipws yparxei kati antistixw

  Anti gia to binary dos2unix, mporeis na xrhsimopoihseis ena para poly aplo
skriptaki:

#!/bin/sh
tr -d '\015'

  Anti gia to unix2dos, mporeis na xrhsimopoihseis to ekshs:

#!/bin/sh
awk -- '{printf("%s\r\n",$0);}'

  Fysika lyseis me alla programmata (px sed(1)) einai eksisou efiktes (kai
malista protimountai apo to awk(1) logw taxythtas kai megethous).


-------------------------- ,o88,o888o,,o888o. --------------------------------
Alexios Chouchoulas         '88    ,88'   ,88'   http://www.vennea.demon.co.uk 
The Unpronounceable One    ,o88oooo88ooooo88oo,     alexios at vennea.demon.co.uk


--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list