diff --git a/sheets/apt-config b/sheets/apt-config new file mode 100644 index 0000000..d67a004 --- /dev/null +++ b/sheets/apt-config @@ -0,0 +1,10 @@ +# apt-config +# APT Configuration Query program + +# List all APT (and related) configuration options and their values. +apt-config dump + +# List regular expressions used to match packages to be ignored by apt-get(8)'s +# `autoremove` functionality. Assumes `;` or some other undesired character +# will be at the end of the string. +apt-config dump | awk '/^APT::NeverAutoRemove::/ {print(substr($2, 0, length($2) - 1))}' diff --git a/sheets/awk b/sheets/awk index de61394..b873a65 100644 --- a/sheets/awk +++ b/sheets/awk @@ -48,7 +48,7 @@ awk '{NR != 1 && A[$1]=$2} END {print(A["Mem:"])}' <(free -h) # the same, and in other cases, the above is definitely preferable. awk '/^Mem:/ {print($2)}' <(free -h) -# Output list of unique uppercase-only, sigil-omitted variables used in [FILE]. +# Output list of unique uppercase-only, sigil-omitted variables used in FILE. awk ' { for(F=0; F