ei.sed 394 B

1234567891011121314151617181920212223
  1. 1i\
  2. /* A sample sed script to show the use of the 'ops' file.\
  3. ops is converted into a test program for local integers \
  4. */
  5. /LSTART/d
  6. s/FN/main/
  7. /ISTART/c\
  8. int x=255 , y= -256 ;
  9. /[XYZS]/s/.*/& ; printf("%s#","&"@) ;/
  10. /Z1/s/#/ %d&/
  11. /Z1/s/@/, Z1&/
  12. /Z2/s/#/ %d&/
  13. /Z2/s/@/, Z2&/
  14. /Z1/s/^/Z1 = 255 ; /
  15. /Z2/s/^/Z2 = 255 ; /
  16. /[XYZS]/s/^/ /
  17. s/X/4/g
  18. s/Y/5/g
  19. s/S/15/g
  20. s/Z1/x/g
  21. s/Z2/y/g
  22. s/#/\\n/
  23. s/@//