4 ms·
It's not a bad idiom to use. You can keep retrieving the last command, and change the grep term quickly with ^w . When the search argument to grep is in the m
by arbitrage 10y ago
It's not a bad idiom to use. You can keep retrieving the last command, and change the grep term quickly with ^w . When the search argument to grep is in the middle of the line, you can't easily iterate over a bunch of search terms by hand.
- expression 10y agoDid you know you can start the command with the redirection operator? <input-file grep stuff Unless you are concatenating stuff, I see no reason to use cat.
- gpm 10y agoWhat if you just want to view the contents of input-file, unpaged. `<input-file` doesn't print anything unfortunately (curiously it doesn't error either).
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]