select lines according to conditions.

Discussion in 'Command Line' started by papori, Jan 14, 2013.

  1. papori

    papori New Member

    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Hi!
    i have a text file with columns and lins, and i want to select lines according to conditions.

    the conditions are:
    if deviding of column 3 in 4 result in 100.
    for example:
    column 3 is 400
    column 4 is 4
    then: 400/4=100

    is there an easy way of doing that?


    Thanks
    Pap
  2. Schlittenhund

    Schlittenhund New Member

    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Reading variables from a file: goo.gl/sDutg
    Shell arithmetic: goo.gl/YaAwa
    If & Else: goo.gl/89Mul

    Where are you stuck?

Share This Page