Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- pat="$1"
- awk -F: -v pat="$pat" '
- {
- if ( $1 ~ /1st Tier/ || $1 ~ /2nd Tier/ \
- || $1 ~ /3rd Tier/ || $1 ~ /[0-9]*th Tier/ \
- || $1 ~ /Overlord Skills/ || $1 ~ /Super-Tier/ \
- || $1 ~ /Special Skill/ && $2 == "" ) {
- tier=$1
- }
- skillname=$1
- skill=$2
- if ( index($1, pat) ){
- printf("\033[1;33m%s\033[1;0m\n",tier);
- printf("\033[1;31m%s\033[1;0m\n",skillname);
- system("echo \"'\"'$2'\"'\" | fmt -w 85 ")
- }
- }
- ' < "${HOME}/Overlord Skills"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement