Re: lug-bg: win txt to txt
- Subject: Re: lug-bg: win txt to txt
- From: bkrosnov@xxxxxxxxx (Boyan Krosnov)
- Date: Thu, 14 Sep 2000 00:42:02 +0300
hi na wsichki wi,
ako trqbwa da sme perfekcionisti :) mojesh da slojish oshte 2 opcii na
perl-a i da
prewyrnesh programcheto w ednoredowka :)
------>8 snip
#!/usr/bin/perl -n -p -i
s/\r//g;
------>8 snip
poprawete me ako gresha neshto
ys zdrawe,
Boyan
Dimitar Stoikov wrote:
>
> On Tue, Sep 12, 2000 at 07:47:18PM +0200, ISM Kolemanov, Ivan wrote:
> > zdravejte pak,
> >
> > nqkoj moze li da me svetne kak da konvertiram windowski txt fail do unix txt
> > file
> > pod unix
>
> ---b
> #!/usr/bin/perl -i
>
> while (<>) {
> tr/\r//d;
> print;
> }
> ---e
>
> usage: this.perl.executable /path/to/your.txt
>
> [tacho, nishto ne kazvai.]
>
> -- \n ds@xxxxxxxxxxxx | 0xDF584A67
> ==================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|