Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. which pip    || yum -y install python-pip
  4. which lsof   || yum -y install lsof
  5. which lolcat || pip install lolcat
  6.  
  7. tput setaf 1 && tput rev && seq -ws "___|" 73|fold -62|tr "0-9" "_" && tput sgr0
  8.  
  9. cat >/tmp/logo<<EOF
  10.   ___________.__                              .__  .__
  11.   \_   _____/|__|______   ______  _  _______  |  | |  |
  12.    |    __)  |  \_  __ \_/ __ \ \/ \/ /\__  \ |  | |  |
  13.    |     \   |  ||  | \/\  ___/\     /  / __ \|  |_|  |__
  14.    \___  /   |__||__|    \___  >\/\_/  (____  /____/____/
  15.        \/                    \/             \/
  16. EOF
  17. cat /tmp/logo | lolcat && rm -f /tmp/logo
  18.  
  19. lsof -i -nlP | awk '{print $9, $8, $1}' | sed 's/.*://' | sort -un | column -t
  20.  
  21. tput setaf 1 && tput rev && seq -ws "___|" 73|fold -62|tr "0-9" "_" && tput sgr0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement