Re: [9fans] sam and 'here documents' on Unix [WAS: Re: Making multiple changes to dot using sam -d]

2022-05-12 Thread umbraticus
hmm, interesting. ^ is indeed very useful; making it work in sam -d is probably the correct thing to do but here's a quick hack. (9front specific, tho you can probably figure out another way to pretend you typed.) umbraticus ; fn f{echo ,x/red/c/blue >/dev/kbdin} ; sam -d -. a I hired a red red

[9fans] sam and 'here documents' on Unix [WAS: Re: Making multiple changes to dot using sam -d]

2022-05-12 Thread Mart Zirnask
A related question: 9front sam has the ^ command, which makes it easy to apply multiple sam commands to the dot from a script, e.g: #!/bin/rc cat << END ,x/red/ c/blue/ ,x/yellow/ c/green/ END How does one accomplish this in oldschool Unix sam -d without the ^ command, and also without using ssam

Re: [9fans] Deleting lines in sam - d

2022-05-12 Thread revcomninos
I have applied the script and the suggestions are fantastic. For the kind of work I am doing now, having the numbers helps me a lot, although I do also understand the point Christ is making. Many thanks! -- 9fans: 9fans Permalink: https://9fans.topicbox.co