This file contains hidden or 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
import urllib.request | |
import re | |
import io | |
packages = ["apache2", "java-common", "nginx", "vim", "slurm"] | |
regex="<h1>(.*)</h1>" | |
for i in packages: | |
url = "https://packages.ubuntu.com/bionic/%s" % i |
This file contains hidden or 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
cat /etc/squid/squid.conf | egrep -v "(^#.*|^$)" | |
egrep -v means leave the following out | |
^#.* means patterns that begin with a # | |
| means or | |
^$ means patterns that are empty |