#!/bin/bash | |
# Copyright 2018 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
awk '/Booting Linux/{a=0} /audit:/{x[a++]=$0} END { for(i=0;i<a;i++) { print x[i];} }' /var/log/messages |