Thread Forumausfall (18 answers)
Opened by esskar at 2004-08-18 02:07

coax
 2004-08-18 20:59
#88027 #88027
User since
2003-08-11
457 Artikel
BenutzerIn
[default_avatar]
Ich bin nicht gut in Bash-Programmierung aber den Einzeiler bekomm ich auch noch auf die Reihe.

Code: (dl )
for fname in /etc/crontab, /etc/cron.{hourly,daily,weekly,monthly}, /etc/cron.d/*, /var/spool/cron/*; do echo -e "\nfile: $fname\n--"; cat $fname;  done


und in einen Perl-Einzeiler:
Code: (dl )
 perl -ple '' /etc/crontab /etc/cron.d/* /etc/cron.{daily,hourly,weekly,monthly} /var/spool/cron/*

Nur wie koennte man hier an den aktuellen Dateinamen kommen um den zusaetzlich mit ausgeben zu koennen?
,,Das perlt aber heute wieder...'' -- Dittsche

View full thread Forumausfall