Merge pull request #167 from terminalforlife/master
Add Awesome AWK Example & Other Useful Stuffpull/168/head
commit
ec4117f8f8
@ -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))}'
|
@ -0,0 +1,10 @@
|
||||
# pactl
|
||||
# Control a running PulseAudio sound server
|
||||
|
||||
# Display a sorted and uniq-ified list of PulseAudio modules, using AWK.
|
||||
pactl list modules short | awk '{!Lines[$2]++} END {asorti(Lines, Sorted); for (Line in Sorted) print(Sorted[Line])}'
|
||||
|
||||
# Load a module.
|
||||
pactl load-module MODULE
|
||||
# Unload a module.
|
||||
pactl unload-module MODULE
|
Loading…
Reference in New Issue