Re: [9fans] command repetition in sam/acme

2009-03-03 Thread Arvindh Rajesh Tamilmani
> You can double-click at the beginning of the line and then execute > > s//\n/g > .-0+1000 > u > > that will show you what the 1000th word is it is useful to note down the address here. s//\n/g .-0+1000 =# u the output of '=#' can then be 'sent' to the sam window to reach the 1000th word. sett

Re: [9fans] Binary File split

2010-05-10 Thread Arvindh Rajesh Tamilmani
i had a similar need some time back and used inferno's sh: http://a-30.net/inferno/dis/split arvindh

Re: [9fans] Acme-sac integration with Windows NT

2010-05-18 Thread Arvindh Rajesh Tamilmani
acme-sac on windows is my development environment too. b2 on 'win os cmd' gives a cmd.exe window. i prefer sh(1), so i use just 'win' and access the windows files from /n/C. i have shell functions defined in $home/lib/functions to invoke specific windows commands. for example: fn ant {

Re: [9fans] Acme-sac integration with Windows NT

2010-05-19 Thread Arvindh Rajesh Tamilmani
> How do you folks using acme-sac on Windows deal with the line-ending > issue? pipefs(4) can be used to filter windows directory trees: http://groups.google.com/group/acme-sac/msg/973e8c67b33a7976 and also to filter /chan/snarf (in $home/lib/profile): http://groups.google.com/group/acme-sac/msg/

Re: [9fans] Acme-sac integration with Windows NT

2010-05-21 Thread Arvindh Rajesh Tamilmani
> If you are using cygwin, you can use sh from acme-sac: it is possible to b3 on a relative file name in a cygwin window and get it opened in acme-sac. you'll need the label patch to win[1], bin/awd and bin/label from plan9port and a cd wrapper as described in the example section of label(1)[2]. a

Re: [9fans] assigning acme windows to columns programmatically

2011-01-18 Thread Arvindh Rajesh Tamilmani
the inferno sh script below shows a rather terrible way to open a file in a given acme column. arvindh #!/dis/sh load std expr string usage := 'usage: bcol colnum file' fn xcmd{ (cwin cmd) := $* q0 := `{wc -c /mnt/acme/$cwin/tag echo Mx$q0 $q1 > /mnt/acme/$cwi