T0RB1T

transbatch

Nov 22nd, 2018
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. # Inputs ./transseq "Your string to translate" translator code_file (optional)
  2.  
  3. FILE=${3:-"codes"}
  4. echo $1
  5. new="$1"
  6. for i in $(cat ./codes/$FILE)
  7. do
  8.   lang=$i
  9.   temp=$(./trans :$lang -e $2 -brief "$new")
  10.   new="$temp"
  11.   # ./trans :en -e $2 -brief "$new"
  12.   # eng=$(./trans :en -e $2 -brief "$new")
  13.   # echo $lang $i #$eng $new
  14. done
  15. ./trans :en -e $2 -brief "$new"
Advertisement
Add Comment
Please, Sign In to add comment