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...
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)}'...
// 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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.