If.sed



#  Fixup if statements:

#     if [ expr ]             if ( expr ) then
#     then              -->
#        :                       :
#     fi                      end

/^[   ]*then[  ]*$/d
/^[   ]*if[[(  ].*;[    ]*"\{,1\}then"\{,1\}/s/[   ]*;[  ]*"\{,1\}then"\{,1\}//
/^[   ]*if/s/[[(]\(.*\)[])]$/(\1) then/
/^[   ]*fi[    ]*$/s/fi/end/}



Hamilton C shell | Free Updates | Free Demo Software | Win32 Training
Y2K | Customer Testimonials | On-line Hamilton C shell User Guide
Home | Email | Support | Company Profile | Distributors | Links



Copyright © 1997-2001 by Hamilton Laboratories. All rights reserved.
You are visitor number . This page was last modified August 14, 2001.