From 9c27ba496b377ac53f73139679613a7c531ad48a Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Thu, 7 Dec 2023 11:31:57 -0800 Subject: [PATCH] :wrench: Bslash now works with llama --- scripts/bslash | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/bslash b/scripts/bslash index e85b1dd4..37e2936d 100755 --- a/scripts/bslash +++ b/scripts/bslash @@ -5,8 +5,7 @@ if [ -z "$1" ]; then exit 1 fi -input=$(cat "$1") - -output="${input//$/$\\}" - -echo "$output" | xclip -sel clip \ No newline at end of file +# 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 \ No newline at end of file