The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-28-2005
bryan bryan is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 22
Thanks

It was the backticks

Proper Script:
#!/bin/ksh //correct

DFR=`df -g /dev/devetl_lv|grep devetl_lv|awk '{print $4}'|sed 's/\%//'`
//correct

if [ $DFR -gt 90 ] then echo "True" else echo "False" fi
//wrong.....it says 0403-057 Syntax error at line 6 : `then' is not matched.

Please let me know whats wrong. I did try with ';' after the expression [..], but didnt help