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
Re: gz logs entpacken und zusammenfügen
Code: Select all
for i in mails*.gz; do zcat ${i} >> mails_full.log; donePayPal.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.
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: gz logs entpacken und zusammenfügen
Code: Select all
zcat /var/log/mails*.gz >> mail.logRe: 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.
