wdoc2txt 277 B

1234567891011121314151617
  1. #!/bin/rc
  2. switch($#*){
  3. case 0
  4. exit
  5. case 1
  6. switch($1){
  7. case *.rtf
  8. pub/rtf2text $1 >[2]/dev/null | plumb -i -d edit -a 'action=showdata filename='$1
  9. case *.doc *
  10. doc2txt $1 | plumb -i -d edit -a 'action=showdata filename='$1
  11. }
  12. exit
  13. case *
  14. for(i in *)
  15. wdoc2txt $i
  16. }