#!/bin/sh # stdin: default config # stdout: modified config set -e # save stdin (content of /etc/mkinitcpio.conf) in variable stdin="$(cat)" # assert a screenshot for key-combination "Print" exists echo "$stdin" | grep --quiet '^\s*\s*$' # replace action key-combination "Print" echo "$stdin" | sed 's|||'