I have this line:
ssh server1 "df -h | sed 's/%/ /g' | awk '{ if (\$5 > 90 && !/^[a-zA-Z]/) { var1=1 }} END { if (var1 == 1) { print 1 } else { print 0 }}'"
However, this produces the following error:
bash: !/^[a-zA-Z]/: event not found
Not quite sure how I should escape the exclamation mark. Any ideas?
Regards,
David