Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    select lines according to conditions.

    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. #2
    Join Date
    Jan 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reading variables from a file: goo.gl/sDutg
    Shell arithmetic: goo.gl/YaAwa
    If & Else: goo.gl/89Mul

    Where are you stuck?

 

 

Similar Threads

  1. How to count how many lines a file have?
    By carbon333 in forum General Linux
    Replies: 3
    Last Post: 07-09-2012, 03:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,573
Threads: 3,920
Posts: 9,442
Top Poster: Fred (1,486)
Welcome to our newest member, Ronald de Souza

» Links



Powered by vBadvanced CMPS