Re:Mastering Bash and Terminal
by rbonvall on Saturday January 14, 2017 @08:37PM
(#13401828)
:.!ls means "filter the current line through ls". Since ls ignores stdin, the effect is that the current line gets replaced by its output. :r!ls just inserts the output, without replacing anything.
Is there a difference?