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:
> 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
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:
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