Hi,
2014-03-31 17:54 Daniel Peyrolon <[email protected]>:
> > Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g
>
> So, it was simply a matter of changing "$" for "\n" at the x command!
> How come my command didn't work?
> It really should work with the "$", shouldn't it?
>
> Or even without the \n or the $, since the regexp already matched
> until the '{',
> so the substitution should have worked.
I'm not really that proficient in acme/sam but, from the sam
manpage:
$ The null string at the end of the file.
I'd also recommend reading
http://doc.cat-v.org/bell_labs/sam_lang_tutorial/ .
It helped me a lot getting a better undestanding of the command
language.
Take care,
Ruben