Last active
October 9, 2021 17:26
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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