Hallo,
ich wollte mal fragen ob jemand für mich einen Einzeiler hatt, der meine /var/log/mails*.gz wieder aneinanderhängt (in der richtigen Reihenfolge), so dass ich ein großes File bekomme.
Dazu gibts doch sicher ein Einzeiler, oder ?
Vielen Dank schonmal....
gz logs entpacken und zusammenfügen
-
- Project Manager
- Posts: 11190
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: gz logs entpacken und zusammenfügen
Code: Select all
for i in mails*.gz; do zcat ${i} >> mails_full.log; done
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: gz logs entpacken und zusammenfügen
Code: Select all
zcat /var/log/mails*.gz >> mail.log
-
- Project Manager
- Posts: 11190
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: gz logs entpacken und zusammenfügen
Geschenkt ;)
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.