From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <200907191551.26219.corey@bitworthy.net> References: <200907191551.26219.corey@bitworthy.net> Date: Sun, 19 Jul 2009 21:50:36 -0500 Message-ID: From: Jason Catena To: corey@bitworthy.net, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0016e6475488e0929b046f1a3389 Subject: Re: [9fans] first timer - editing plan9.ini Topicbox-Message-UUID: 27ec82fe-ead5-11e9-9d60-3106f5b1d025 --0016e6475488e0929b046f1a3389 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit The advantage of Acme is that there isn't much learning: all the commands are obvious (eg Put writes back to disk), but you do have to learn the mouse clicks to execute them. I use sed's language constantly, and look forward to expanding my bag of tricks with sam. Stream editors are without-a-doubt the most useful tool I have for editing files, because I can write scripts that edit them for me. I found that sam had a limiting command-line interface, so I wrote a script around it (ssam) that gives at a more sed-like stream-editing interface: -e accepts a (series of) sam commands; -f accepts the name of a file with sam commands; and you can pipe in the text you want to change, then use -e or -f to supply the commands. It puts all the text it changes on standard output. It's in code-review right now, so if you use it let me know (-G sends a gripe with mail) if it doesn't work well for you. http://codereview.appspot.com/95076/diff/1/2 Jason Catena --0016e6475488e0929b046f1a3389 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The advantage of Acme is that there isn't much learning: all the c= ommands are obvious (eg Put writes back to disk), but you do have to learn = the mouse clicks to execute them.

I use sed's = language constantly, and look forward to expanding my bag of tricks with sa= m. =A0Stream editors are without-a-doubt the most useful tool I have for ed= iting files, because I can write scripts that edit them for me.

I found that sam had a limiting command-line interface,= so I wrote a script around it (ssam) that gives at a more sed-like stream-= editing interface: -e accepts a (series of) sam commands; -f accepts the na= me of a file with sam commands; and you can pipe in the text you want to ch= ange, then use -e or -f to supply the commands. =A0It puts all the text it = changes on standard output. =A0It's in code-review right now, so if you= use it let me know (-G sends a gripe with mail) if it doesn't work wel= l for you.

http://codereview.appspot.com/95076/diff/1/2

J= ason Catena

--0016e6475488e0929b046f1a3389--