#!/bin/sh # stdin: default config # stdout: modified config # 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" sed 's|||' <<< "$stdin"