4 ms·
This can be done with regular shell redirection, even though I wouldn't recommend it. Easy to get wrong, and fairly opaque: $ cat foo foo bar b
by scbrg 5y ago
This can be done with regular shell redirection, even though I wouldn't recommend it. Easy to get wrong, and fairly opaque:
$ cat foo
foo
bar
baz
$ ( rm foo && grep ba > foo ) < foo
$ cat foo
bar
baz
$