iscomm@watdcsu.waterloo.edu (Independent Studies) (07/12/88)
Does anyone have a PD version of SED (Stream Editor) preferably with source in C, not asking much at all am I, The source is not critical but docs would be nice. I had a version of SED called NSED, but it was not very good as it did strange things for no reason I could derive. I tried doing what I wanted in BAWK, but that was worse then the lousy NSED. Mail or post to comp.binaries.ibm.pc as the whole gang may want one that works. Thanks to any who reply. -------------------------------------------------------------------------- What do you mean `I cant decorate my room in mag tape' --------------------------------------------------------------------------
bunda@cs.utexas.edu (John Bunda) (07/13/88)
In article <4876@watdcsu.waterloo.edu>, iscomm@watdcsu.waterloo.edu (Independent Studies) writes: > Does anyone have a PD version of SED (Stream Editor) preferably with > source in C, not asking much at all am I, > There was a version of sed posted to comp.os.minix recently, I don't know if it's the same as the NSED you refer to or not. anyway, it's c source and seems to work fine... See comp.os.minix, the information sheet that's posted monthly includes a list of archive sites... John -- ................................................................ John Bunda UT CS Dept. The proof is trivial, and bunda@cs.utexas.edu Austin, Texas left as an exercise.
adonis@tahoe.unr.edu (Derrick Hamner) (07/16/88)
I would like to help, but my sysop won't let me post large files to moderated groups (i.e. Nothing large gets mailed.). I have something that seems to fit your description very well however. I have included an excerpt from it's manual. If you (or someone else) is near a PC-Pursuit'able city, I could upload it to a BBS there, and you could get it (or someone else could post it). It's a lot of trouble, but this seems to be a good program. Derrick ----Excerpt from manual---- PORTABILITY This tool was reverse-engineered from BSD 4.1 UNIX sed, and (as far as the author's knowledge and tests can determine) is compatible with it. All documented features of BSD 4.1 sed are supported. One undocumented feature (a leading 'n' in the first comment having the same effect as an -n command-line option) has been omitted. The following bugs and limitations have been fixed: * There is no hidden length limit (40 in BSD sed) on w file names. * There is no limit (8 in BSD sed) on the length of labels. * The exchange command now works for long pattern and hold spaces. The following enhancements to existing commands have been made: * a, i commands don't insist on a leading backslash-\n in the text. * r, w commands don't insist on whitespace before the filename. * The g, p and P options on s commands may be given in any order. Some enhancements to regular-expression syntax have been made: * \t is recognized in REs (and elswhere) as an escape for tab. * In an RE, + calls for 1..n repeats of the previous pattern. The following are completely new features: * The l command (list, undocumented and weaker in BSD) * The W command (write first line of pattern space to file). * The T command (branch on last substitute failed). * Trailing comments are now allowed on command lines. In addition, sed's error messages have been made more specific and informative. The implementation is also significantly smaller and faster than BSD 4.1 sed. It uses only the standard I/O library and exit. NOTE This is a freeware component of the GNU operating system. The user is hereby granted permission to use, modify, reproduce and distribute it subject to the following conditions: 1. The authorship notice appearing in each source file may not be altered or deleted. 2. The object form may not be distributed without source. -- ----------------------------------------------------------------------------- | There are more important things to be | Derrick Hamner | | than responsible. | tahoe.unr.edu.UUCP!adonis | -----------------------------------------------------------------------------