GNU/Linux and opensource news gathered

http://linux.feeder.ww7.be
«  septembre 2017
lundi mardi mercredi jeudi vendredi samedi dimanche
28 29 30 31 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 1
retour à la date courante

Aujourd'hui 2 nouvelles :


  • Need script to monitor open file in Linux, par adminhelp, 8 septembre 2017

    vendredi 8 septembre 2017 :: The UNIX and Linux Forums :: RSS
    Kindly advice with shell script to monitor open file in linux, if the open file count is greater then 5000 then send me an email..

    command : lsof | wc -l
    Lire la suite adminhelp
  • Scratching my head over old post, par OMLEELA, 8 septembre 2017

    vendredi 8 septembre 2017 :: The UNIX and Linux Forums :: RSS
    Hello !

    Pondering over some old post & I need some help.

    Here is the link below -

    When I run this,

    Code:

    echo " process(130) Deleting Text on line 11 (ESN:27723211621B01DJ68AG) because a number wasnt 'AVAILABLE'  and is not found in the database" | awk '$0=$2' FS=\( RS=\) "
    I get the following output
    Code:

    130
    ESN:27723211621B01DJ68AG

    Next,

    Code:

    echo " process(130) :27723211621B01DJ68AG) because a number wasnt 'AVAILABLE'  and is not found in the database" | sed "s/^.*(\([^)]*\)).*(....\(.*\)).*'\(.*\)'.*/\1 \2 \3/"

    130 27723211621B01DJ68AG AVAILABLE

    Questions -
    1. In there , the magic is happening all because of $0=$2. Can someone please explain to me as to what does $0=$2 means ?
    2. Also can someone go over the sed operation here as I tried to understand this for the past 2 hours and I am not getting anywhere with this.


    best regards,
    Lee.
    Lire la suite OMLEELA