Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: userand
  • Content: Threads
  • Order by date
  1. userand

    Filter columns

    Hello, I need help in the following problem: I have this datarow 0 23 43 67 123 345 565 342 100 42 12 1 0 0 23 43 67 123 345 565 342 100 42 12 1 0 I want to filter out those columns, which are out of the mean vaule +/- standard deviation of the positions of the numbers. Position means the...
  2. userand

    Conversion

    Hello, I have the following output from some program: 10 3 7 9 10 the first column is: there should be 10 colums the other columns are the position of some arbitrary character, let's say "1". I need to convert the row above to this line 0 0 1 0 0 0 1 0 1 1 Could anyone help me?
  3. userand

    2d arrays help

    Hi all, I have a problem, and cannot see how to solve it, so I need some help. I have a data file like this: 1 4 8 1 3 9 1 1 9 2 1 24 2 4 14 2 2 54 2 3 4 2 4 39 2 1 2 2 1 103 4 2 4 3 2 78 4 4 9 3 1 1 I would like to make a 2d histogram from this data in the following way: - the...
  4. userand

    Print out numbers on display

    Hi, I am just wondering how can be solved the following problem: I have the numbers 0 0 0 0 12 0 0 234 1 7 0 0 99 0 9 0 0 Now I would like to convert this to _ _ _ _ 12 _ _ 234 1 7 _ _ 99 _ 9 _ _ I think I should use a[0]="_"; ...etc. but if I have numbers different from 0's it is a...
  5. userand

    Converting numbers

    Hi all, Can anyone help me to convert the following, which actually what I would like to get from the previous lines: I have the file 1 6 8 1 1 9 2 6 14 2 1 14 4 6 5 I would like to get 1 9 0 0 0 0 8 2 14 0 0 0 0 14 4 0 0 0 0 0 5 So the first column is just a row number, the 2nd is the...
  6. userand

    Separate output

    Hello, I have the following simple code (see below), which makes from this input file,where [\tab] means that there is tab instead of space: 1 1 0 1 0 0 [\tab] 1 1 0 1 0 0 this output dd cd cc dd cd cc Now, this is good, but i would like to get rather output like this dd [\tab] dd cd...
  7. userand

    count numbers column by column

    Hi, could anyone help me how should I count the number of "ones" in the following record in that way that counts every 16 blocks 0000001000010000000100100000100100000000000000000000001000000000 so it should be counted the "ones" in 0000001000010000 and 0001001000001001 and 0000000000000000...
  8. userand

    max value

    Hello again, sorry for this repeated post, but I need some help. I have the following lines: 2 2 2 1 1 1 2 5 1 1 1 2 2 1 17 2 1 2 3 2 3 How can I print out the maximum value of a line? I have tried this, but cannot helps me at the moment awk '{for(i=1;i<=NF;i++){if($i > max) max =...
  9. userand

    verify arbitrary column

    Hello, I would like to check the values of the columns of a file, which numbers are arbitrary... For example these are the three lines (records) of a file 1 1 1 2 2 2 1 1 1 2 3 1 1 3 2 3 2 1 1 In this case I would like to print out those records, in which value of every column is not...

Part and Inventory Search

Back
Top