Browse files

Make allcron display username per cron output

  • Loading branch information...
1 parent ef933d5 commit 60b7a4c4d2462dc17f0a0074a9e5a25b97978430 @StephenBrown2 committed Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sh_aliases
@@ -11,7 +11,7 @@ alias mv='mv -i'
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls -F --color=tty'
-alias allcron='sudo cut -d: -f1 /etc/passwd | grep -vE "#" | xargs -i{} sudo crontab -u{} -l'
+alias allcron='sudo cut -d: -f1 /etc/passwd | grep -vE "#" | while read user; do echo -e "\nCrontab for $user:"; sudo crontab -u$user -li; done'
alias d8='date --iso-8601'
alias d8h='date --iso-8601=hour'
alias d8m='date --iso-8601=minute'

0 comments on commit 60b7a4c

Please sign in to comment.