Skip to content

Instantly share code, notes, and snippets.

@davidraedev
Created January 4, 2022 09:45
Show Gist options
  • Save davidraedev/f2c175717ffeebd24639b128e8a24036 to your computer and use it in GitHub Desktop.
Save davidraedev/f2c175717ffeebd24639b128e8a24036 to your computer and use it in GitHub Desktop.
list all at jobs and their contents
#!/bin/bash
for j in $( atq | sort -k6,6 -k3,3M -k4,4 -k5,5 | cut -f 1 ); do atq | grep -P "^$j\t"; at -c "$j" | tail -n 2; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment