Skip to main content
3 events
when toggle format what by license comment
Sep 2, 2015 at 2:57 vote accept Xentrees
Sep 2, 2015 at 2:53 comment added Xentrees Ah! this works. The issue was the brackets. I was using {{if()}} changing it to {if(){}} worked perfectly! the Full code was sed -e 's/\t/_/g' -e 's/\( *\) /_/g' /var/tmp/all_disks | awk -F ":|=|_" '/Reallocated/ {if(NF==13){ print $1,$6,$13; name=$1}; if(NF==12) print name,$5,$12}' > /var/tmp/suspect_disks
Sep 2, 2015 at 2:28 history answered user1794469 CC BY-SA 3.0