Skip to content

Instantly share code, notes, and snippets.

@byoigres
Created May 21, 2015 01:50
Show Gist options
  • Select an option

  • Save byoigres/ad78aae0086d07fa9874 to your computer and use it in GitHub Desktop.

Select an option

Save byoigres/ad78aae0086d07fa9874 to your computer and use it in GitHub Desktop.
Get installed packages
#!/bin/bash
FILES=/home/sergio/Desktop/logs/*
for f in $FILES
do
cat $f | grep "^Commandline: apt-get install" >> out.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment