In sam I can create a script file consisting of a list of edit commands to apply to the document. I then invoke ,| ssam -f my_script to apply it.
I would like to do something similar in acme.
For example, create a script with these two commands to cleanup whitespace:
Edit ,x/^ +/d
Edit ,x/ +$/d
I would like to know if such a script would require the regular #!/bin/rc heading, and how it would be invoked from within acme. I tried to do something in my scripts folder, but it did not work.