🔧 Bslash now works with llama
This commit is contained in:
parent
daac791005
commit
9c27ba496b
1 changed files with 4 additions and 5 deletions
|
|
@ -5,8 +5,7 @@ if [ -z "$1" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
input=$(cat "$1")
|
# Read the file line by line and append a backslash to each line
|
||||||
|
while IFS= read -r line; do
|
||||||
output="${input//$/$\\}"
|
echo "$line\\"
|
||||||
|
done <"$1" | xclip -sel clip
|
||||||
echo "$output" | xclip -sel clip
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue