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 SkipVought 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: *

  1. tivona

    Shuffling the lines

    Dear LKBrwnDBA, Thank you very much for your efforts. After posting the query, I got to know the command "shuf" which is quite handy and does not require to set up the seed. But yours is more instructive in that one can learn more about programming from reading the codes. Cheers
  2. tivona

    Shuffling the lines

    Dear all, Shuffling the lines I would like to perform the following tasks using awk. I would be grateful for any advices you might have. 1. Shuffle the lines by field 1 (groups 111, 112). That is, within each group shuffling is undertaken independently. 2. After that print out the first 5...
  3. tivona

    Matching fields with random selection

    Further to my problem posted earlier, I have not mentioned that a same control can serve to different case. That is, for example, after a control is chosen for a case for code a, that same control can then serve subsequently as a control to another case provided that both agedays and sex fields...
  4. tivona

    Matching fields with random selection

    Dear all, Matching fields with random selection I like to do the following matching and would be very grateful if someone would be able to provide a script file for doing this. Since the input dataset is quite large in order of millions of lines, it is almost impossible to upload into a...
  5. tivona

    Generate sequence of numbers

    Dear PH, It works great except for a missing ")". awk '{for(i=$1;i>0;--i) print i}' /path/to/input Cheers, Tivona
  6. tivona

    Generate sequence of numbers

    Dear all, I would like you have your advice on how to generate the following pattern of sequence numbers using awk. Input 2 4 3 Output 2 1 4 3 2 1 3 2 1 Thanks in advance Tivona

Part and Inventory Search

Back
Top