Re:Linux Productivity Tools (2019) [pdf]
by hikarudo on Tuesday May 19, 2020 @08:19AM
(#23234006)
Wow, you described my workflow exactly. Using "<" might be shorter and faster-for-the-machine, but it's less readable and breaks the left-to-right order. I also frequently start with `cat x`, see what's in the file, move on to `cat x | some filter` etc.
[ Parent
| on HN ]
'<file' can be used anywhere in the command. If it makes more human sense to have the file near the start, you can do that.
grep <file -opts 'regex'
This is why I walked back my claims a bit in my tldr — basically started trying stuff out and had a “whoa not used to the way that looks, but it does _work_...” moment.
I think I still have the “wrong” preference, but I appreciate learning some new stuff!