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