Created
September 25, 2017 13:15
-
-
Save tavy315/ee3b9953b73fafdfd08b47fc07f873a7 to your computer and use it in GitHub Desktop.
This script will loop over each user name listing out their crontab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment