Re: vi: count occurrences of a word

2021-09-03 Thread ropers
On 03/09/2021, Marc Chantreux wrote: >> 'abc' in FILE, from within vi. > > * % means 'the current file' in vi commands so you can write That's helpful; thank you! > * | is the command separator > * grep has a -c flag to count occurrences > > so you can write: > > :w|grep -c abc % That doesn

Re: sim7600 4g modem

2021-09-03 Thread Cord
> > It looks like it is probably a Qualcomm-based device. It seems likely > > that as things are now, it will attach to umsm. I can't say for sure if > > it will work or not though I think there is a fairly good chance. > > But unless you are lucky and somebody already used the same device, > >

Re: Time estimation from fs at boot on clock-less systems

2021-09-03 Thread Stuart Henderson
On 2021-09-03, Donovan Watteau wrote: > (As for "the problem I'm trying to solve": ERL has no clock, ntpd -s is > gone, but ntpd relies on DNS, and Unbound enables DNSSEC, so this system > is indefinetly stuck between unbound and ntpd errors if I reboot and if > the kernel infers a date that's too

Re: 6.9 Installer succeeds, computer will not boot from hard drive

2021-09-03 Thread Jeff Ross
On 9/3/21 12:35 PM, Jeff Ross wrote: On 9/3/21 3:45 AM, Stuart Henderson wrote: On 2021-09-02, Jeff Ross wrote: This is a multi-part message in MIME format. --F51C046C214039690CD908CB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi all,

vi: count occurrences of a word

2021-09-03 Thread Marc Chantreux
> 'abc' in FILE, from within vi. * % means 'the current file' in vi commands so you can write * | is the command separator * grep has a -c flag to count occurrences so you can write: :w|grep -c abc % you can also write the content of the buffer to a pipe (my prefered solution here): :w

amd64 ddb somewhat poor - why?

2021-09-03 Thread Chris Narkiewicz
Hi, Amd64 page (https://ftp.openbsd.org/amd64.html) states that: The only major shortcoming at this time is that the kernel debugger ddb is somewhat poor. Myself not being familiar with it, can someone explain to me why amd64 is considered "poor" and what shortcomings it has, relative to other p

Time estimation from fs at boot on clock-less systems

2021-09-03 Thread Donovan Watteau
Hello, On systems without an internal clock, I'm trying to understand how OpenBSD makes a rough time estimation from the previous file system state, immediately after a reboot. It seems to be related to inittodr(9) in kern_time.c (seems to be MI in 6.9; earlier octeon releases would say "No TOD c

Re: vi golf: command on a motion?

2021-09-03 Thread ropers
> i['d] forgotten & (not that useful in vim) but yes! now you reminds me, it makes perfect sense to use it in nvi. Speaking of things that make no sense in one vi clone but work in another, I recently ended up looking for a way to count occurrences of 'abc' in FILE, from within vi. In vim you just

Re: 6.9 Installer succeeds, computer will not boot from hard drive

2021-09-03 Thread Jeff Ross
On 9/3/21 3:45 AM, Stuart Henderson wrote: On 2021-09-02, Jeff Ross wrote: This is a multi-part message in MIME format. --F51C046C214039690CD908CB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi all, I bought one of these mini computers h

Re: 6.9 Installer succeeds, computer will not boot from hard drive

2021-09-03 Thread Jeff Ross
On 9/3/21 2:34 AM, Maurice McCarthy wrote: At the boot prompt try boot> boot hd1a:/bsd If it works you can put it in boot.conf HTH Unfortunately, the boot process never gets to the boot prompt--it skips right over the newly installed hard drive. Jeff

Re: vi golf: command on a motion?

2021-09-03 Thread Marc Chantreux
hello, > The bang command has an equivalent in vi. this is the same command indeed but the ergonomy is quite different: vi don't "generate" the begining of a command including the range so we can't just delete a char and edit. > The closest you > can get to executing the same replacement via a v

Re: vi golf: command on a motion?

2021-09-03 Thread ben
>even if it's short, I really would like to have >something which work the way I abuse the ! command in vim: The bang command has an equivalent in vi. >so I just have to replace the ! by s/foo/bar and i get the job done. So far there is no vi command to perform such operation; bang is both a v

vi golf: command on a motion?

2021-09-03 Thread Marc Chantreux
hello people, Does anyone know how to get this done even faster: ma } :'a,ms/foo/bar even if it's short, I really would like to have something which work the way I abuse the ! command in vim: !} actually write a range on command line like :.,.6! so I just have to replace

Re: 6.9 Installer succeeds, computer will not boot from hard drive

2021-09-03 Thread Stuart Henderson
On 2021-09-02, Jeff Ross wrote: > This is a multi-part message in MIME format. > --F51C046C214039690CD908CB > Content-Type: text/plain; charset=utf-8; format=flowed > Content-Transfer-Encoding: 8bit > > Hi all, > > I bought one of these mini computers > > https://www.amazon.com/dp/B084

Re: 6.9 Installer succeeds, computer will not boot from hard drive

2021-09-03 Thread Maurice McCarthy
At the boot prompt try boot> boot hd1a:/bsd If it works you can put it in boot.conf HTH