Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RubenKelevra/f887a2983af77884cbe9fc61f816825d to your computer and use it in GitHub Desktop.
Save RubenKelevra/f887a2983af77884cbe9fc61f816825d to your computer and use it in GitHub Desktop.
oldifs="$IFS"
IFS=$'\n'
echo "" > installed_programs.txt
for e in `yaourt -Qen`; do
echo "$(echo $e | cut -d' ' -f1)" >> installed_programs.txt
done
IFS=$oldifs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment