3 ms·
Just don't forget about these aliases since GNU grep and the builtin grep can vary in what they support. I once ran into a head-scratching afternoon where `sed
by 3JPLW 8y ago
Just don't forget about these aliases since GNU grep and the builtin grep can vary in what they support. I once ran into a head-scratching afternoon where `sed` would work with GNU extensions from the command line but not inside a shell script, and it took far too long to figure it out!
https://stackoverflow.com/questions/40183218/why-does-sed-behave-differently-in-a-shell-script https://stackoverflow.com/questions/40183218/why-does-sed-be...
- herdrick 8y agoI did the very same thing, and asked about it on SO too! https://stackoverflow.com/questions/54658932/grep-v-f-of-empty-file-different-between-script-and-command-line-on-os-x https://stackoverflow.com/questions/54658932/grep-v-f-of-emp...