home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 3 / CD_Magazyn_EXEC_nr_3.iso / Recent / text / edit / WordCount-CED.readme < prev    next >
Text File  |  2000-07-23  |  2KB  |  34 lines

  1. Short:    Fast line/word/character counting ARexx hack for CED
  2. Author:   Matthias.Bethke@gmx.net
  3. Uploader: Matthias.Bethke@gmx.net
  4. Version:  1.3
  5. Type:     text/edit
  6. Requires: wc (from the GeekGadgets textutils package, ftp.ninemoons.com)
  7.  
  8.  
  9. This is a quick ARexx hack I threw together (forgive the probably not very
  10. nice code - I'm neither experienced in ARexx nor too keen on improving it
  11. stylistically) to quickly count lines, words and characters in a file or
  12. marked block in CygnusEd. It basically saves the block to a temp file, runs
  13. "wc" (the Unix "word count" command) on it, grabs its output and displays
  14. it in a CED requester. Oh, and it deletes the temp files, too :-)
  15.  
  16. Installation: Just copy it to your HD (preferably to REXX:ced/) and use the
  17. "Special -> Dos/ARexx Interface -> Install Dos/Arexx command" menu to bind
  18. it to some key. No arguments required.
  19.  
  20. Advantages:
  21. - Fast. The "Word-Count-File.ced" macro takes ages for the same job.
  22. - Flexbile. Well, more flexible than the former that is, although that
  23.             doesn't tell much. It can process blocks, too, that's about it.
  24. Disadvantages:
  25. - Needs temporary storage. This is currently in T:, i.e. you have to have
  26. enough free RAM for the temp file plus wc (which in turn loads
  27. ixemul.library, if you don't have it loaded anyway!). If you don't like
  28. that, set it to some directory on your HD (masochists: use Floppies or
  29. ParNet drives 8-))
  30. - Kills the current copy buffer. Even without a marked block it has to mark
  31. and copy the entire file first :-( If anybody knows how to save a copy to
  32. another file without permanently changing the current fil's name in CED,
  33. tell me!
  34.