Skip to content

Instantly share code, notes, and snippets.

@alex-alekseichuk
Last active October 9, 2021 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex-alekseichuk/68f8565d65c61d5260ac22cd0b3e8005 to your computer and use it in GitHub Desktop.
Save alex-alekseichuk/68f8565d65c61d5260ac22cd0b3e8005 to your computer and use it in GitHub Desktop.
Generate brief descriptions for the list of tools from their man pages
#!/bin/bash
cmds=(cat tac head tail tee more less echo wc grep find sort comm tr cut split sed awk seq)
for cmd in $cmds; do
man $cmd|sed -n '4p'|sed -E 's/^\s+//;s/ - /\n /'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment