zsh/debfunctions.zsh

11 lines
374 B
Bash
Raw Normal View History

#! /bin/zsh
2023-10-05 10:14:04 +02:00
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: GPL-3.0-or-later
# shellcheck shell=bash
# this is ripped off serverfault https://serverfault.com/a/90401
2018-08-27 10:38:06 +02:00
function debchangedconfigs () { dpkg-query -W -f='${Conffiles}\n' '*' | awk 'OFS=" "{print $2,$1}' | LANG=C md5sum -c 2>/dev/null | awk -F': ' '$2 !~ /OK$/{print $1}' | sort; }