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 strongm 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: Blivo
  • Order by date
  1. Blivo

    Awk with if statements

    Oh, I don't know if it matters but I'm doing all of this in DOS. When I type: awk '/Availability|Reboots/,/Bluescreens/' file.txt I get an error message saying: 'Reboots' is not recognized as an internal or external command, operable program or batch file. awk : not enough arugments Any...
  2. Blivo

    Awk with if statements

    Ok I want to awk certain parts of a file based on whether or not they have certain words. I'll post an example of my file. ********************** Server1 ********************** Current System Uptime " 6 day(s), 21 hour(s), 13 minute(s), 35 second(s)"...
  3. Blivo

    Merging Text between files

    I would like it to come out like this File1: AAA BBB CCC File2: DDD EEE FFF Merged File: AAA BBB CCC DDD EEE FFF
  4. Blivo

    Merging Text between files

    Actually, I just did some more tests on it and no. for some reason it seems to merge them into the middle of each other. Also, with some of the files, it won't work. Could it be because of the file name or the contents of the file itself?
  5. Blivo

    Merging Text between files

    Something exactly like that I would say. Thanks
  6. Blivo

    Merging Text between files

    How would I take all the text from different files and merge them together so that they show up under each other?
  7. Blivo

    Transposing rows into columns

    I may just not have implemented it correctly, I'll try again and could someone please explain to me what each part of both sets of code mean? thanks
  8. Blivo

    Transposing rows into columns

    awk ' /executions/{ E = $NF } /compilations/ { C = $NF } /deleted/ { A[++i] = sprintf("%10s%10s%10s", E, C, $NF) } END { for (; i > 0; i--) print A[i] | \ "sort -r -k" COL "," COL }' COL=1 file That's an example i found that I tried to implement into my code, but with my little awk experience I...
  9. Blivo

    Transposing rows into columns

    I've seen something like this in other places but I'm extremely new to using awk and couldn't make any sense of it. Could someone please tell me how to get this: System Availability 100.00% Total Uptime 551d 8h 12m 23s Total Downtime 0d 0h 24m...

Part and Inventory Search

Back
Top