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 Chriss Miller 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: mregotman
  • Content: Threads
  • Order by date
  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

    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)}'...
  3. 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