3 ms·
# netstat -nr | grep '^default' Am I correct in inferring that you have used Unix for a very very long time? The ^ stopped being a magic character in Unix shel
by tzs 16y ago
# netstat -nr | grep '^default'
Am I correct in inferring that you have used Unix for a very very long time? The ^ stopped being a magic character in Unix shells a long time ago, but many old-timers (myself included) still sometimes quote it out of habit.
- bradleyland 16y agoI've only been using Unix for about 10 years, but I quote arguments to grep out of habit. I find it easier (probably mental laziness) to just single quote everything I feed to grep, rather than mentally parsing what I'm about to type and deciding whether it requires quotes. So basically, I've substituted an extra two characters for my ever decreasing mental acuity :)