You are not logged in.

#1 2015-07-26 05:17:02

ForumVoice
Member
Registered: 2015-03-04
Posts: 5

paclogclean.sh

I like this software:

pacaur
pacmanlogviewer
pkgbrowser

Here is a little help script. It removes log warnings. I wish pacman had options to turn them off. Just chmod +x <script> and put it on $PATH.

#!/usr/bin/env bash
set -e
shopt -s dotglob
shopt -s extglob

# Strips cruft in pacman logs.
# /etc/fstab tweak on /var/log for users:
# gid=100,mode=0777 (otherwise sed barfs)

PACMAN_LOGFILE=$(pacman -Qv linux | grep -i "^Log File" - | cut -d ":" -f 2 -)
# extglob trim, stackoverflow.com/a/3015564
PACMAN_LOGFILE="${PACMAN_LOGFILE##+([[:space:]])}"

sed --in-place -e "/directory permissions differ/d" -e "/^filesystem/d" "${PACMAN_LOGFILE}"

Offline

Board footer

Powered by FluxBB