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