Skip to content

Instantly share code, notes, and snippets.

@deomorxsy
Last active September 14, 2020 23:09
Show Gist options
  • Save deomorxsy/067f6f2efa74b8e1d971f7e32dbf1009 to your computer and use it in GitHub Desktop.
Save deomorxsy/067f6f2efa74b8e1d971f7e32dbf1009 to your computer and use it in GitHub Desktop.
get the pacman log file and redirect it to a .txt file
#!/bin/bash

touch pacman-latest.txt;
grep -i installed /var/log/pacman.log >> pacman-latest.txt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment