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 IamaSherpa 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. mregotman

    convert output to .html file

    how would I get the output of this to be in an a .html file..I tried putting the echo >> command on each line to send it to a file called out.html but doesn't come out ..do i need to put the html header at top? #!/bin/bash dans=`netstat -an | grep 127.0.0.1.8883 | awk '{print $4}' | grep...
  2. mregotman

    format text file into 2 columns using awk

    at LKBrwnDBA, Nice but it aligns the right side brackets perfectly ..just the opposite of what I need .. at CaKiwi, Here is the full code actually ..I've aligned it fine in my out of my script ..but when I send the output to my iphone ..the text is jumbled up echo Security and Maint Logs...
  3. mregotman

    format text file into 2 columns using awk

    oops, the desired output got jumbled up when I submitted it .. the output should look to have the left most brackets perfectly aligned over each other ..the right brackets do not need to be aligned just the left most brackets ..thanks in advance.
  4. mregotman

    format text file into 2 columns using awk

    I have script that produces this result below - I'm trying to align the output into only 2 colums ..see below for the desired output. I'm using the following code, I need help tweeking it or a complete rewrite ..Thanks for any assistance. awk '{printf("%-30s%-15s%-10s\n", $1,$2,$3,$4)}'...
  5. mregotman

    awk not returning correctly value

    CaKiwi, Thanks!!!!!!!!! I tried so many variations.. Thanks again!!
  6. mregotman

    awk not returning correctly value

    // returns the right value of "Parent" dansguardian -s | awk '{print $1}' //returns the right value of "DansGuardian" dansguardian -s | awk '{print $2}' //returns the right value of "pid:65273" dansguardian -s | awk '{print $3}' but as soon as I put these commands in a bash script ...no...

Part and Inventory Search

Back
Top