Re: Using :g to filter lines through an external command

2020-07-13 Thread A. Wik
On Sun, 12 Jul 2020 at 19:12, Tim Chase wrote: > > On 2020-07-12 09:59, A. Wik wrote: > > Hi all, > > > > Assume I have a file (or just a buffer) with the contents: > > echo Hello from /bin/sh > > test1 > > test2 > > test3 > > ---end-file--- > > Well, for this particular buffer, you're processing

Re: Using :g to filter lines through an external command

2020-07-12 Thread Tim Chase
On 2020-07-12 09:59, A. Wik wrote: > Hi all, > > Assume I have a file (or just a buffer) with the contents: > echo Hello from /bin/sh > test1 > test2 > test3 > ---end-file--- > > :1!sh does what I would expect: it passes "echo Hello from /bin/sh" > as input to the shell, which executes the line

Using :g to filter lines through an external command

2020-07-12 Thread A. Wik
Hi all, Assume I have a file (or just a buffer) with the contents: echo Hello from /bin/sh test1 test2 test3 ---end-file--- :1!sh does what I would expect: it passes "echo Hello from /bin/sh" as input to the shell, which executes the line as a command, and the line is replaced with "echo"'s