Hacker News new | ask | show | jobs
by ndunn2 5655 days ago
#2 can be replaced with a 'tree' command

#3 doesn't work for me on Mac OSX with Bash; the ! is interpreted as the last command. Not sure if this works in other shells

#4 is clever, but I would think if you're doing something that complex that you need to recall time and time again you'd make an alias for it.

#8 is clever. I love AWK. But not sure when I'd ever use this.

The rest were pretty bleh to me. Always looking for new shell kung fu but unfortunately this list did nothing for me.

1 comments

You need to turn on extended globbing for #3 (shopt -s extglob).