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 Andrzejek 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. pchassang

    how to concate line in four variables or array

    Hi PHV, it looks not working :( done in MobaXterm [10/06/2014 12:46.48] /drives/c/Tmp/CH Bergerac [pch.PC-PCH] ➤ awk '/^hdisk/{h=$0;getline;v=$0;for(i=1;i<4;++i){getline;h=h";"$0;getline;v=v";"$0};print h"\n"v}' test.txt ; File d'attente : avgtime mintime maxtime avgwqsz...
  2. pchassang

    how to concate line in four variables or array

    my command line: cat test.txt |awk ' /hdisk0/ { hdisk0=hdisk0 $0;getline val0=val0 $0;getline hdisk0=hdisk0 $0;getline val0=val0 $0;getline hdisk0=hdisk0 $0;getline val0=val0 $0;getline hdisk0=hdisk0 $0;getline val0=val0 $0;getline;getline;getline hdisk1=hdisk1 $0;getline val1=val1 $0;getline...
  3. pchassang

    how to concate line in four variables or array

    I made a mistask when i wrote the post. in my commande line, i have this, and it don't work as i dsicribed in my last post. Perhaps the solution is in parsing each field in a line to add in the good variable?
  4. pchassang

    how to concate line in four variables or array

    Hi PHV, I have to analyse iostat output, but for each disk (hdisk0 and hdisk1) i have 8 lines. the first, the third, the fifht and the seventh is the title of each colomns of stats. I want to have just one line and the same for stats values (second, fourth, sixth and eighth) i tried with some if...
  5. pchassang

    how to concate line in four variables or array

    Hello all, I need your help to transform an output of Iostat file hereafter the bloc hdisk0 transfer : %tm_act bps tps bread bwrtn 0,2 18,8K 4,6 0,0 18,8K lect. : rps moyserv minserv maxserv...

Part and Inventory Search

Back
Top