Re: [9fans] Breaking up long lines in sam into more manageable ones

2021-08-26 Thread fwrm via 9fans
On Wednesday, 25 August 2021, at 9:31 PM, David Leimbach wrote: > Try in the taglineĀ  > Edit ,|fold -s -w80 > Highlight it and middle click it. Yeah but that's acme not sam. You can do: ,|your_cmd -- 9fans: 9fans Permalink:

Re: [9fans] Help with a sam cleanup script

2021-08-03 Thread fwrm via 9fans
> In any event, is there not a way to run the script from within sam without > using that particular version? There is: ,| ssam -f your_script -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T10b1d559ae7d981e-M4bd20ac371578e1e0514911e

Re: [9fans] Help with a sam cleanup script

2021-08-03 Thread fwrm via 9fans
As for comments in scripts, if you use ssam(1) to run them the easiest way would be starting the lines you want to be ignored with a character that isn't a sam command (this will work because ssam sends stderr to /dev/null). -- 9fans: 9fans Permalink:

Re: [9fans] A few more questions about sam

2021-08-05 Thread fwrm via 9fans
4) In ed/awk/grep/etc... regexp is used to "select" *the lines containing it* and do stuff, in sam however it's used to describe the shape of string(s) themselves you want to "select" (with x and y commands). It doesn't have the concept of a line. Your selection can be less than a line, or you