[ LUGOS ] sed?
Boris Benko
boris.benko na telekom.si
Ned Okt 18 17:24:11 CEST 1998
crt jakhel wrote:
> kako sedu v fukcijo replace vstavit nek non-printable char?
> (menjam en blesav slo razpored z drugim blesavim slo razporedom :)
Jaz silom prilike menjavam code page ko keks. Upam, da ti bo ta izsek iz
skripte dal
kaksen navdih (kode so osmiske!):
convert_win1250_iso8859_2()
{
echo "Converting from WIN1250 to ISO8859-2, please wait... "
echo "Input file:" $1
echo "Output file:" $2
echo -n "Conversion started... "
tr "\350,\346,\232,\236,\360,\310,\306,\212,\256,\320"
"\350,\346
,\271,\276,\360,\310,\306,\251,\256,\320" < $1 > $2
echo "OK"
}
Upam, da sem ti z odgovorom kaj pomagal!
=b
--
============================================================================
Boris Benko, dipl.ing. | E-mail: Boris.Benko na telekom.si
Telekom Slovenije, PE Murska Sobota | B.Benko na s-gms.ms.edus.si
Senior Prog./Sys admin./Informatik | Boris.Benko na computer.org
Slu§ba za informatiko | Phone: (work) +386 69 31 676
| (work) +386 69 37 800 21
| (home) +386 69 32 592
===========================================================================
Dodatne informacije o seznamu Starilist