#!/usr/bin/env bash if [ -z "$1" ]; then echo "Usage: bslash " exit 1 fi # Read the file line by line and append a backslash to each line while IFS= read -r line; do echo "$line\\" done <"$1" | xclip -sel clip