🔧 Simple script for use with llama
This commit is contained in:
parent
e7dac08972
commit
daac791005
1 changed files with 12 additions and 0 deletions
12
scripts/bslash
Executable file
12
scripts/bslash
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: bslash <file>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
input=$(cat "$1")
|
||||
|
||||
output="${input//$/$\\}"
|
||||
|
||||
echo "$output" | xclip -sel clip
|
||||
Loading…
Add table
Add a link
Reference in a new issue