Skip to content

Instantly share code, notes, and snippets.

@hxmuller
Created October 20, 2016 14:14
Show Gist options
  • Save hxmuller/37a5879912a77dbb9e230b81734dc70e to your computer and use it in GitHub Desktop.
Save hxmuller/37a5879912a77dbb9e230b81734dc70e to your computer and use it in GitHub Desktop.
list Raspbian bootstrapped packages
# sed - stream editor for filtering and transforming text
# -n suppress automatic printing of pattern space
# cut - remove sections from each line of files
# -f select only these fields
# -d use DELIM instead of TAB for field delimiter
# awk - pattern scanning and text processing language
sed -n '/Setting up/p' /var/log/bootstrap.log | cut -f3 -d' ' | awk '!arr[$0]++' > filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment