Search Results

Search: Posts Made By: Kalaihari
17,050
Posted By Chubler_XL
You only want 1 line at the top of the table with...
You only want 1 line at the top of the table with host name right, best idea is to do this in the begin block like this:

df -g | awk -v host=`hostname` '
BEGIN {
print "<table border=\"1\"...
17,050
Posted By Chubler_XL
Good news, glad you are getting the results your...
Good news, glad you are getting the results your after.

One possible issue is these two NR tests highlighted below could be throwing away the first line of your data:

df -g| awk...
17,050
Posted By Chubler_XL
Firstly collect the required HTML for your tables...
Firstly collect the required HTML for your tables on each server like this:

df -g | awk 'NR>1&&($4+0)>70' | awk '
BEGIN {print "<table border=\"1\" cellpadding=\"4\" style=\"border-collapse:...
6,845
Posted By gacanepa
Just adding my 2 cents here. Another way to get...
Just adding my 2 cents here. Another way to get this done would be:
#!/bin/bash
# Do not show the titles of columns:
df -H | grep -vE '^Filesystem' | awk '{ print $5 " " $1 }' | while read...
6,845
Posted By Yoda
Please pay attention to what somebody posts. ...
Please pay attention to what somebody posts.

Just Ice has piped the output to grep to exclude header line.

Another option to skip header:
df -g | awk 'NR>1&&($4+0)>70' > report.txt

if [...
6,845
Posted By Just Ice
first off, assistance you receive on this website...
first off, assistance you receive on this website is offered by unpaid volunteers on their own time -- that includes me -- so it would be good to maintain a professional tone ...

second, your...
3,126
Posted By Corona688
Please ask your separate question in your own...
Please ask your separate question in your own thread. Look in the forum you wish to post in and click the https://www.unix.com/images/buttons/newthread.gif button.
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 04:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy