I have the following awk script which is not working.
# ------ fs.awk ------
BEGIN {OFS = "\t";print "Filesystem Capacity";print "=================
==============="}
/"^/"/{a = $1}
/^[0-9]* %/{print a, "\t\t"$1" %"}
How do I change the line:
/"^/"/{a = $1}
So that if the first character is a / then it prints the first field? I tried using " and ', but I can't figure it out.
Thanks,
John
# ------ fs.awk ------
BEGIN {OFS = "\t";print "Filesystem Capacity";print "=================
==============="}
/"^/"/{a = $1}
/^[0-9]* %/{print a, "\t\t"$1" %"}
How do I change the line:
/"^/"/{a = $1}
So that if the first character is a / then it prints the first field? I tried using " and ', but I can't figure it out.
Thanks,
John