convert-mans 188 B

123456789101112
  1. #!/bin/sh -e
  2. FROM="$1"
  3. TO="$2"
  4. shift ; shift
  5. while [ $# -gt 0 ]
  6. do
  7. FILE="$1"
  8. shift
  9. iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
  10. mv .tmp.iconv "$FILE"
  11. done