News for hackers. Stuff that matters.
Re:Mastering Bash and Terminal by cyberpunk on Saturday January 14, 2017 @08:18PM (#13401756)
Hmm, I always used :.!ls instead of :r!ls...

Is there a difference?

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.