#! /bin/bash # Check if exactly one argument is provided if [ "$#" -ne 1 ]; then echo "Usage: $0 " exit 1 fi # Append the output of wl-paste to the provided file wl-paste --type text/plain > "$1"