Advertisement
constantin-net

.bin/words.sh [ocr&sub]

Jul 31st, 2018
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/bash
  2. #declare -a arr=(`echo $1 | tr -d "\"" | tr -s " ",",","!","?",".","-","—" "\n"`)
  3. declare -a arr=(`cat /tmp/sub`)
  4. result=""
  5. count_arr=${#arr[@]}
  6. for ((i=0; i<count_arr; i++)) do
  7. result+="\n${arr[$i]}\t`sdcv -n -u dictd_www.mova.org_sokrat_enru ${arr[$i]} | head -n6 | tail -n1`"
  8. done
  9. echo "naughty.notify({font = beautiful.font, title = '$1', text = \"${result}\" })" | awesome-client
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement