Advertisement
melnikovmaxim

BKV_transcoding_files

Dec 16th, 2019
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. //link https://yadi.sk/i/8_BwfSpbmRGpMA
  2. #!/bin/bash
  3.  
  4. IFS=$'\n'
  5.  
  6. for y in `find . -type d`; do
  7.     file="$y/*.*"
  8.     for t in $file; do
  9.         case $t in
  10.             *.txt|*.c|*.h|*.html)
  11.                 enca $t -L russian
  12.                 enconv $t -x utf8
  13.             ;;
  14.         esac
  15.     done
  16. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement