lug-bg: Character encoding

2004-10-22 Thread Hristo Hristov
 ,
   -  10.0.
  .
 Character encodingCyrilic 
Windows 1251  UTF - 8?
   
 . 
   ,  
Character encoding
 .

  :  
begin:vcard
fn:Hristo Hristov
n:Hristov;Hristo
email;internet:[EMAIL PROTECTED]
tel;home:054/6-34-39
tel;cell:089/8304457
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: lug-bg: Character encoding

2004-10-22 Thread Petar Nedyalkov
On Friday 22 October 2004 09:42, Hristo Hristov wrote:
  ,
-  10.0.
   .
  Character encodingCyrilic
 Windows 1251  UTF - 8?
   
  .
, 
 Character encoding   
  .

  KMail -Auto character encoding selection.   
   GUIEvolution, Balsa  ..  
 .  ,
 encodings , encoding   Content-Type 
header-   ;-)

.


   :  

-- 

Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)

PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436


pgp9YXLZqlXPI.pgp
Description: signature


Re: lug-bg: Character encoding

2004-10-22 Thread Andrey Andreev
Hristo Hristov wrote:
 ,
   -  10.0.
  .
 Character encodingCyrilic 
Windows 1251  UTF - 8?
,
   ,   ,  CP1251,  
UTF-8  , 
.

   
 . 
   ,  
Character encoding
 .
  Thunderbird -Tools - Options - Fonts  
  default encoding 
, , 
 default-a.

,

--
Andrey Andreev
University of Helsinki
Dept. of Computer Science

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Проблем с вдигане на МТУ над 1500 BCM5705_2

2004-10-22 Thread Kiril Todorov
   thread   
 .
  ,NewReply  .
 threadinga   :-)

--
+---+
| Kiril Todorov  +  System::Network Administrator |
+---+
| /* waiting... dreaming... wishing... */   |
+---+

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



lug-bg: Re: lug-bg: Re: lug-bg: Проблем с вдигане на МТУ над 1500 BCM5705_2

2004-10-22 Thread diablodh
   BCM5705   , 
   
 5700  
  
 3
.
 HP  :
 http://h18023.www1.hp.com/support/files/server/us/download/21125.html
   
 1540  
   
- 
8   
- Original Message - 
From: Georgi Chorbadzhiyski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 22, 2004 8:15 AM
Subject: Re: lug-bg: Re: lug-bg:   
1500 BCM5705_2


 [EMAIL PROTECTED] wrote:
   
   
  1508 ,   
   .

 :)4095  ,  
 . MTU 1540 
.
 
 bcm   
 vlan-. ?

 -- 
 Georgi Chorbadzhiyski
 http://georgi.unixsol.org/


 A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
 http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
Zagora
 To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html




A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



lug-bg: Търси се програмист

2004-10-22 Thread Ivan Dimitrov
,itjobs
 ,  .

: 
  
SQL (mysql  pgsql)
C
Perl

  
Linux
Apache

  - 
  SV-   .

-- 


Hi! I'm your friendly neighbourhood signature virus.
Copy me to your signature file and help me spread!


pgp28y9WXOok8.pgp
Description: PGP signature


Re: lug-bg: sum and sort with bash

2004-10-22 Thread Georgi Genov
Ivailo Ivanov wrote:
 Zdraveite,
Imam fail sas sledata struktura:
source-ip-1 dest-ip bytes digit1 digit2 digit3
source-ip-2 dest-ip bytes digit1 digit2 digit3
source-ip-1 dest-ip bytes digit1 digit2 digit3
source-ip-1 dest-ip bytes digit1 digit2 digit3
---
source-ip-n dest-ip bytes digit1 digit2 digit3
Iskam da sortiram source ip-ta ta spriamo sumarnite
bytes ot vsiako ot tiah. Triabva da se polu4i neshto
takova, primerno:
1. source-ip-1 10929Mb
2. source-ip-6 1234Mb
3. sourceip-24 125Mb

I taka natatak

 

 .

 
.

#!/bin/sh
#edit
db=2345 4634 677547 45 2 574 876854 4563463 35 34637 734443 4573 7457 
376277 357447 7457 5 5 98
#

#vuvejda dannite v masiv
n=0
for m in $db; do
n=`expr $n + 1`
db[$n]=$m
done
#prenarejda masiwa
x=$n
while [ ! $x -eq 1 ]; do
y=$n
while [ ! $y -eq 1 ]; do
y1=`expr $y - 1`
if [ $(echo ${db[$y]}  ${db[$y1]} | bc) -eq 1 ]; then
tmp=${db[$y1]}
db[$y1]=${db[$y]}
db[$y]=$tmp
fi
y=`expr $y - 1`
done
x=`expr $x - 1`
done
#izvejda rezultata
while [ ! $n -eq 0 ]; do
echo -n ${db[$n]} 
n=`expr $n - 1`
done
echo
exit 0

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Търси се програмист

2004-10-22 Thread peyo
On Friday 22 October 2004 12:11, Ivan Dimitrov wrote:
 ,itjobs  
   ,  .

 :
   

!!?!?!
! -  ?


 SQL (mysql  pgsql)

PostgreSQL ?   . 

 C

!
  !
   C/C++ !


 Perl

   
 Linux
 Apache




   - 
   SV-   .

   CV-,   
?

?



-- 
---
  . 
 ,
   .
***
  -  : http://6lyokavitza.org/mail

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: sum and sort with bash

2004-10-22 Thread Ivailo Ivanov

--- Georgi Genov [EMAIL PROTECTED] wrote:

 Ivailo Ivanov wrote:
 
   Zdraveite,
 Imam fail sas sledata struktura:
 
 source-ip-1 dest-ip bytes digit1 digit2 digit3
 source-ip-2 dest-ip bytes digit1 digit2 digit3
 source-ip-1 dest-ip bytes digit1 digit2 digit3
 source-ip-1 dest-ip bytes digit1 digit2 digit3
 ---
 source-ip-n dest-ip bytes digit1 digit2 digit3
 
 Iskam da sortiram source ip-ta ta spriamo sumarnite
 bytes ot vsiako ot tiah. Triabva da se polu4i
 neshto
 takova, primerno:
 
 1. source-ip-1 10929Mb
 2. source-ip-6 1234Mb
 3. sourceip-24 125Mb
 
 I taka natatak
 
 
  
   
 
 Ето ти един скрипт за
 подреждане по големина на
 числа.
 А ако ми дадеш и примерен ред
 от лога за да видя какъв
 точно е парсера 
 между стойностите
 ще ти ги обединя и двата
 скрипта в един.
209.25.134.7 172.1.1.162 3880868 3880868 1098296995
1098297024
172.1.1.162 209.25.134.7 508987 508987 1098296995
1098297024
212.36.9.10 172.1.1.162 895 895 1098296995 1098297024
172.1.1.162 212.36.9.10 679 679 1098296995 1098297024
195.24.37.245 172.1.1.162 6974 6974 1098296995
1098297024
172.1.1.162 195.24.37.245 644 644 1098296995
1098297024
195.24.39.97 172.1.1.162 56997 56997 1098296995
1098297024
172.1.1.162 195.24.39.97 3366 3366 1098296995
1098297024
212.50.8.31 172.1.1.162 36843 36843 1098296995
1098297024
172.1.1.162 212.50.8.31 1604 1604 1098296995
1098297024
69.93.62.154 172.1.1.162 264820 264820 1098296995
1098297024
172.1.1.162 69.93.62.154 19349 19349 1098296995
1098297024
 
 #!/bin/sh
 #edit
 db=2345 4634 677547 45 2 574 876854 4563463 35
 34637 734443 4573 7457 
 376277 357447 7457 5 5 98
 #
 
 #vuvejda dannite v masiv
 n=0
 for m in $db; do
 n=`expr $n + 1`
 db[$n]=$m
 done
 
 #prenarejda masiwa
 x=$n
 while [ ! $x -eq 1 ]; do
 y=$n
 while [ ! $y -eq 1 ]; do
 y1=`expr $y - 1`
 if [ $(echo ${db[$y]}  ${db[$y1]} | bc) -eq 1 ];
 then
 tmp=${db[$y1]}
 db[$y1]=${db[$y]}
 db[$y]=$tmp
 fi
 y=`expr $y - 1`
 done
 x=`expr $x - 1`
 done
 
 #izvejda rezultata
 while [ ! $n -eq 0 ]; do
 echo -n ${db[$n]} 
 n=`expr $n - 1`
 done
 echo
 exit 0
 


 A mail-list of Linux Users Group - Bulgaria
 (bulgarian linuxers).
 http://www.linux-bulgaria.org - Hosted by Internet
 Group Ltd. - Stara Zagora
 To unsubscribe:
 http://www.linux-bulgaria.org/public/mail_list.html


 




___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: sum and sort with bash

2004-10-22 Thread Peter Pentchev
On Fri, Oct 22, 2004 at 12:29:44PM +0300, Georgi Genov wrote:
 Ivailo Ivanov wrote:
 
  Zdraveite,
 Imam fail sas sledata struktura:
 
 source-ip-1 dest-ip bytes digit1 digit2 digit3
 source-ip-2 dest-ip bytes digit1 digit2 digit3
 source-ip-1 dest-ip bytes digit1 digit2 digit3
 source-ip-1 dest-ip bytes digit1 digit2 digit3
 ---
 source-ip-n dest-ip bytes digit1 digit2 digit3
 
 Iskam da sortiram source ip-ta ta spriamo sumarnite
 bytes ot vsiako ot tiah. Triabva da se polu4i neshto
 takova, primerno:
 
 1. source-ip-1 10929Mb
 2. source-ip-6 1234Mb
 3. sourceip-24 125Mb
 
 I taka natatak
 
 
 
  
 
  .

  :  
 sort,-n :)  
 IP , ,
  , ( IP   
  ):

sort -n -t. -k1,1 -k2,2 -k3,3 -k4,4 traf.txt

 ,   POSIX- sort  ,  
   command-line . 
   sort, 
 ,, 
  (-t.)  (-k...).

  ,  ,
   (   du),   
  - sort -n:

  du -a | sort -n


,   ,  
   ( xargs),   ,  ,  ,  
 ( xargs).  
xargs   ,, 
   echo:

  num=11 9 78 15 3 84
  sorted=`echo $num | xargs -n 1 | sort -n | xargs`

  , bash   
 -.  
, Unix-like   - ,
  'the programmer's toolbox' -
- :)

,


-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
I had to translate this sentence into English because I could not read the original 
Sanskrit.


pgpeqz7MKVpoB.pgp
Description: PGP signature


Re: lug-bg: Търси се програмист

2004-10-22 Thread Petar Nedyalkov
On Friday 22 October 2004 12:39, peyo wrote:
 On Friday 22 October 2004 12:11, Ivan Dimitrov wrote:
  ,itjobs 
 ,  .
 
  :


 !!?!?!
 ! -  ?

  SQL (mysql  pgsql)

 PostgreSQL ?   .

  C

 !
   !   
C/C++ !

  Perl
 

  Linux
  Apache
 
 
 
 
- 
SV-   .

CV-,  
 ?

- -  
 - , 
  ,..  ..?

--...


 ?
 

-- 

Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)

PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436


pgph4OaL85r9O.pgp
Description: signature


Re: lug-bg: sum and sort with bash

2004-10-22 Thread Georgi Genov
Ivailo Ivanov wrote:
--- Georgi Genov [EMAIL PROTECTED] wrote:
 

Ivailo Ivanov wrote:
   

Zdraveite,
Imam fail sas sledata struktura:
source-ip-1 dest-ip bytes digit1 digit2 digit3
source-ip-2 dest-ip bytes digit1 digit2 digit3
source-ip-1 dest-ip bytes digit1 digit2 digit3
source-ip-1 dest-ip bytes digit1 digit2 digit3
---
source-ip-n dest-ip bytes digit1 digit2 digit3
Iskam da sortiram source ip-ta ta spriamo sumarnite
bytes ot vsiako ot tiah. Triabva da se polu4i
 

neshto
   

takova, primerno:
1. source-ip-1 10929Mb
2. source-ip-6 1234Mb
3. sourceip-24 125Mb

I taka natatak
 

209.25.134.7 172.1.1.162 3880868 3880868 1098296995 1098297024
 


  ?
 , 
   
???
   ?

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Търси се програмист

2004-10-22 Thread Martin Bossev
Petar Nedyalkov wrote on 22/10/2004 12:55:
- -  
 - , 
  ,..  ..?

--...

  ?!
   .?
  
 ..   ,
!

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Търси се програмист

2004-10-22 Thread Peter Pentchev
On Fri, Oct 22, 2004 at 01:16:21PM +0300, Martin Bossev wrote:
 Petar Nedyalkov wrote on 22/10/2004 12:55:
 - - 
   - 
 ,   ,  
   ..  ..?
 
 --...
 
 
 
   ?!
.?
   
  ..   ,
 !

,  

 :)

,


-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
If you think this sentence is confusing, then change one pig.


pgp1SKbLK6458.pgp
Description: PGP signature


Re: lug-bg: Търси се програмист

2004-10-22 Thread Ilia Lindov

Petar Nedyalkov wrote:
On Friday 22 October 2004 12:39, peyo wrote:
On Friday 22 October 2004 12:11, Ivan Dimitrov wrote:
,itjobs 
   ,  .
:
  
!!?!?!
! -  ?

SQL (mysql  pgsql)
PostgreSQL ?   .

C
!
  !   
   C/C++ !

Perl
  
Linux
Apache

  - 
  SV-   .
   CV-,  
?

- -  
 - , 
  ,..  ..?

--...
150 ,   
,?
   700 , , 
 500 ?

 ,  ...
:  

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Търси се програмист

2004-10-22 Thread Ilia Lindov

Petar Nedyalkov wrote:
On Friday 22 October 2004 12:39, peyo wrote:
On Friday 22 October 2004 12:11, Ivan Dimitrov wrote:
,itjobs 
   ,  .
:
  
!!?!?!
! -  ?

SQL (mysql  pgsql)
PostgreSQL ?   .

C
!
  !   
   C/C++ !

Perl
  
Linux
Apache

  - 
  SV-   .
   CV-,  
?

- -  
 - , 
  ,..  ..?

--...
150 ,   
,?
   700 , , 
 500 ?

 ,  ...
:  

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Търси се програмист

2004-10-22 Thread Petar Nedyalkov
On Friday 22 October 2004 13:16, Martin Bossev wrote:
 Petar Nedyalkov wrote on 22/10/2004 12:55:
  - -
-
  ,   , 
..  ..?
 
  --...

   ?!
.?
   
  ..   ,
 !

,   -  ,
   , ?   ,   
 . 
  -, ..  , 
 ,   ,   -  
 ,   , . 
 .. -  , 
.

.  
 ;-)

 ===
= A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
 http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
 Zagora To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
 ===
=

-- 

Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)

PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436


pgpH47fAgh8sM.pgp
Description: signature


Re: lug-bg: Търси се програмист

2004-10-22 Thread Ivan Dimitrov
   ,   , 
  .   ,  , 
 :)

   , 
  . 
   -.

, . 
 ...   ,   
 .

 22.10.2004 13:26 Peter Pentchev :
 On Fri, Oct 22, 2004 at 01:16:21PM +0300, Martin Bossev wrote:
  Petar Nedyalkov wrote on 22/10/2004 12:55:
  - -
-
  ,   ,
  ..  ..?
  
  --...
 
?!
 .?

   ..   ,
  !

 ,  
 
  :)

 ,
 

-- 


Hi! I'm your friendly neighbourhood signature virus.
Copy me to your signature file and help me spread!


pgpvuriwpWbA6.pgp
Description: PGP signature


Re: lug-bg: Търси се програмист

2004-10-22 Thread peyo

 - -
   - ,
   ,   
 ..  ..?


 :)

:

   .
  ,. 
. 
 ,  _ _ 
.  

:
  ,  
:
1)(, -)
2)   postgresql   . 
3)  C, __ 
  ...
4) ...   Perl. 

 1: /  ,  
   .
  ,60%. 

 2:  ,.   
. 

:
 ? . 
   ? ,   
-.


:
   

 -  !

  ,   ,  
 .


   , ,   .  
  .  . 

  ,, 
  
   ,   
 !

()  ,  __ 
   C UNIX like OS,   
   . 

  -  !

 ,
   , 
  ..  ...   ,   
  . 

 --...

!
 -...

   ?
 ?
/ 
/?



 



A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Търси се програмист

2004-10-22 Thread Petar Nedyalkov
On Friday 22 October 2004 16:23, Ilia Lindov wrote:
 Petar Nedyalkov wrote:
  On Friday 22 October 2004 12:39, peyo wrote:
 On Friday 22 October 2004 12:11, Ivan Dimitrov wrote:
 ,itjobs 
,  .
 
 :
   
 
 !!?!?!
 ! -  ?
 
 SQL (mysql  pgsql)
 
 PostgreSQL ?   .
 
 C
 
 !
   !   
C/C++ !
 
 Perl
 
   
 Linux
 Apache
 
 
 
 
   - 
   SV-   .
 
CV-, 
   ?
 
  - -
-
  ,   , 
..  ..?
 
  --...

 150 ,  
 ,?
700 , ,
  500 ?

, .  
 ,   
.

   -   .

 weekend.


  ,  ...

 :  
 ===
= A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
 http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
 Zagora To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
 ===
=

-- 

Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)

PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436


pgpsosemYdMkW.pgp
Description: signature


Re: lug-bg: Търси се програмист

2004-10-22 Thread peyo
?
 !

   . 
-. - 
. 
,  .  
. 

 

...
...

!
.  !
  , ? ,-...
 ? '   . '  
'. ...


On Friday 22 October 2004 13:43, Petar Nedyalkov wrote:
 On Friday 22 October 2004 13:16, Martin Bossev wrote:
  Petar Nedyalkov wrote on 22/10/2004 12:55:
   - -
 -
   ,   ,
  ..  ..?
  
   --...
 
?!
 .?

   ..   ,
  !

 ,   -  ,  
 , ?   , 
   .  
 -, ..
  ,  ,   , 
  -   ,   , 
.  .. -  , 
.

 . 
  ;-)

  =
 == = A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
  http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
  Zagora To unsubscribe:
  http://www.linux-bulgaria.org/public/mail_list.html
  =
 == =

-- 
---
  . 
 ,
   .
***
  -  : http://6lyokavitza.org/mail

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Търси се програмист

2004-10-22 Thread Georgi Genov
Petar Nedyalkov wrote:
, .  
 ,   
.

   -   .
 weekend.
 


   . :)
 .

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: sum and sort with bash

2004-10-22 Thread Ivailo Ivanov

--- Georgi Genov [EMAIL PROTECTED] wrote:

 Ivailo Ivanov wrote:
 
 --- Georgi Genov [EMAIL PROTECTED] wrote:
 
   
 
 Ivailo Ivanov wrote:
 
 
 
  Zdraveite,
 Imam fail sas sledata struktura:
 
 source-ip-1 dest-ip bytes digit1 digit2 digit3
 source-ip-2 dest-ip bytes digit1 digit2 digit3
 source-ip-1 dest-ip bytes digit1 digit2 digit3
 source-ip-1 dest-ip bytes digit1 digit2 digit3
 ---
 source-ip-n dest-ip bytes digit1 digit2 digit3
 
 Iskam da sortiram source ip-ta ta spriamo
 sumarnite
 bytes ot vsiako ot tiah. Triabva da se polu4i
   
 
 neshto
 
 
 takova, primerno:
 
 1. source-ip-1 10929Mb
 2. source-ip-6 1234Mb
 3. sourceip-24 125Mb
 
 I taka natatak
 
   
 
 209.25.134.7 172.1.1.162 3880868 3880868 1098296995
 1098297024
   
 
 Ама така и не разбрах кое с
 кое искасш да сумираш и по
 коя стоиност да 
 ги подрежда скрипта?
 Искаш сумиране на
 определени числа в реда едно
 с друго, или всяко да се 
 сумира със стойността му
 в някакъе предходен момент
 ???
 И сортиране по какво?
 
Prosto iskam da mi se porediat sorces po napraven
trafik ot tiah kam, koito i da e destination. Kato
razbira se kato ima niakolko zapisa na edin i sashti
source da mu se sumirat baitovete. I naprimer ako
trafika e nai goliam ot 1.2.3.4 da izleze nai otgore
sas saotvetnata stionost na sumarnia trafik ot nego
sled tova vtoria po trafik i.t.n. Po dobre ot tova ne
moga da go opisha. Blagodaria za scriptovete i
vnimanieto.


 A mail-list of Linux Users Group - Bulgaria
 (bulgarian linuxers).
 http://www.linux-bulgaria.org - Hosted by Internet
 Group Ltd. - Stara Zagora
 To unsubscribe:
 http://www.linux-bulgaria.org/public/mail_list.html


 




___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: sum and sort with bash

2004-10-22 Thread Peter Pentchev
On Fri, Oct 22, 2004 at 04:19:44AM -0700, Ivailo Ivanov wrote:
[snip]
 Prosto iskam da mi se porediat sorces po napraven
 trafik ot tiah kam, koito i da e destination. Kato
 razbira se kato ima niakolko zapisa na edin i sashti
 source da mu se sumirat baitovete. I naprimer ako
 trafika e nai goliam ot 1.2.3.4 da izleze nai otgore
 sas saotvetnata stionost na sumarnia trafik ot nego
 sled tova vtoria po trafik i.t.n. Po dobre ot tova ne
 moga da go opisha. Blagodaria za scriptovete i
 vnimanieto.

,  ...  ,   ,
sortwhile read 
  IP ,IP , 
  .   
  sort  :

  sort traffic.txt | sh sum.sh | sort -n -r -k2

, 
   ,, 
sum.sh  .sum.sh   
  :

1.2.3.4 120
12.1.5.260
5.24.7.240
5.6.7.8 130

...   sort -n (,   122) -r (
 ,   --) -k2 (
 ,IP )
:

5.6.7.8 130
1.2.3.4 120
12.1.5.260
5.24.7.240

   ,  traffic.txt  sum.sh   :

- begin traffic.txt
5.24.7.2 1.2.3.4 10 10 20
5.6.7.8 1.2.3.4 10 10 30
1.2.3.4 6.7.8.9 20 20 40
12.1.5.2 6.7.43.2 20 20 20
5.6.7.8 6.7.8.9 20 20 40
1.2.3.4 5.6.7.8 10 10 20
- end traffic.txt

- begin sum.sh
#!/bin/sh

cursrc=''
curtraf=0
while read src dst t1 t2 t3; do
if [ $src != $cursrc ]; then
# Polzvame printf, a ne echo -e $cursrc\t$curtraf, zashtoto
# kakto maj spomenah i v po-ranen mail do lug-bg, vsyshtnost
# njama portable nachin da ubedim echo da izvezhda specialni
# simvoli kato tabulacijata.
[ ! -z $cursrc ]  printf '%s\t%d\n' $cursrc $curtraf
cursrc=$src
curtraf=0
fi
curtraf=`expr $curtraf + $t1 + $t2 + $t3`
# Ako naistina polzvash bash, a ne sh, i iskash scriptyt ti
# da vyrvi *samo* s bash, a ne s sh na razlichni mashini,
# gornijat red mozhe da byde i...
# curtraf=$(($curtraf + $t1 + $t2 + $t3))
done
# Za poslednija adres...
if [ $curtraf -ne 0 ]; then
printf '%s\t%d\n' $cursrc $curtraf
fi
- end sum.sh

,


-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
I am not the subject of this sentence.


pgpSlZ5WJaRyo.pgp
Description: PGP signature


Re: lug-bg: Търси се програмист

2004-10-22 Thread Petar Nedyalkov
On Friday 22 October 2004 13:44, peyo wrote:
  - -
-
  ,   , 
..  ..?

  :)

:-) 

  , 
 - 
   ?., 
 ,   ,  , 
,.

 - ,,   , 
  ,-   .

,

,- 
  - 
,. ,  
   , ,-,  
  .


 :

.
   ,.

 .  ,  _ _ 
.

 :
   , 
 :
 1)(, -   
 ) 2)   postgresql   .
 3)  C, __
   ...
 4) ...   Perl.

  1: /  , 
.   
   ,60%.

  2:  ,. 
  .

 :
  ?
 .?
 ,   -.

   .



 :


  -  !

   ,   ,
   .

  -, 
 ,  . .

..,  - 
  .


   
 , ,   .
.  .

   ,,
  
,  
  !

   ,   .


 ()  ,  __
C UNIX like OS, 
 .

   -  !

  ,   
,
   ..  ...   , 
.

 ,-   
  .


  --...

 !
  -...

?
  ?
 /
 /?

,  ,  
  , .
   - , - 
   .

 -  .




  


 ===
= A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
 http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
 Zagora To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
 ===
=

-- 

Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)

PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436


pgpF07Dko71fe.pgp
Description: signature


lug-bg: Re: lug-bg: Търси се програмист

2004-10-22 Thread Boris Jordanov / Борис Йорданов
  ...  
(  
   ):

  -.
 ,- .


 -.
  -
 .

,   . 
,
-  . 

 ,
   
 /.
 .  ...

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



lug-bg: * OpenFest - добре дошли!

2004-10-22 Thread Anton Zinoviev

OpenFest 2004 -  


  OpenFest 23-24
 .   
,  
 -  
,  
.

 
, IT .
OpenFest-   
,   
   .  ,  
 
.   . OpenFest 
   .


  

=  

  OpenFest 23  24  (  ) 
   (InterExpo Center)  . 
 147.

InterExpo Center:
http://www.bgmaps.com/services/links/links.asp?linkkey=2b9e69228984366cd9cb28ef6dceac08

 InterExpo Center   114   
1, 3, 5  6  .  .  114
   InterExpo Center. 114 !  
1, 3, 5  6  . .

=  

 ( ) - 
   6-   .   III .

=  

  OpenFest   - .   6.
  -  .



   5- , , ,
   . 
  (1 BGN e  0,5 EUR):

 ,- 0,50 BGN
  5   ,- 5x0,35 = 1,75 BGN

  ,  
  .

   : 2,20 BGN.
   ,
,   .

 ,   0,50
BGN  .

   1 BGN  .

  ,
.

  (hostels)
 .   http://sofia-hostels.com/.

 ,  
http://www.bgmaps.com/ -
  .


. . 213,
214, 305  313.

. 84.


   :

http://www.bdz.bg/
http://www.centralnaavtogara.bg/cbs/home.nsf/vPagesLookup/home~bg
http://www.bus.light-bg.com/index1.php
http://www.sofia-airport.bg/

20-25C10-15C 
.



  OpenFest   BSD-
(bgBSDcon).  OpenFest   InterExpo Center, 
bgBSDcon -   .  
 .

  OpenFest  ,   
 

http://openfest.org/modules.php?op=modloadname=Newsfile=indexcatid=6

  bgBSDcon

http://bsdcon.bg-freebsd.org/?site=program




A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Проблеми с LVM2

2004-10-22 Thread Христофор Памятних
Dimitar G. Katerinski wrote:
 ,.  core dump-a   
, 
. :
irq:   (  boot option noapic  lilo)/ 
APIC  /BIOS-a. IRQ.
unknown_bootoption: boot 
options   .
ide_intr, ata_interrupt:   IDE/IDE RAID ?

,

  boot o  .2.6.4  (   
 ).
 (ASUS P4P800 Deluxe)  Promice (3 SATA  1 IDE )

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html



Re: lug-bg: Търси се програмист

2004-10-22 Thread Христофор Памятних
Petar Nedyalkov wrote:
:-) 

  , 
 - 
   ?., 
 ,   ,  , 
,.

 - ,,   , 
  ,-   .

,
,- 
  - 
,. ,  
   , ,-,  
  .

 

,   
   .,   
.  
   ,,  
 //.
,-   .
  -  .

A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html