#!/bin/bash # Bold BBlack='\e[1;30m' # Nero BRed='\e[1;31m' # Rosso BGreen='\e[1;32m' # Verde BYellow='\e[1;33m' # Giallo BBlue='\e[1;34m' # Blu BPurple='\e[1;35m' # Viola BCyan='\e[1;36m' # Ciano BWhite='\e[1;37m' # Bianco Color_Off='\e[0m' # Text Reset reset_console="\E[37;40m" #biancoBold echo -e $BRed'PROGRAMMA shell PER TRASFORMAZIONE file testo ISO8859-1 in UTF-8'$BWhite" Sembra che funzioni anche sui file.ass di ffmpeg, senza alterare i tag" if [[ "$1" == "" ]]; then echo -e $BWhite'Nome file da convertire '$BYellow read titolo else titolo=$1 fi #costruzione nome output titolipos=`expr index "${titolo}" "."` titolipos=$(( $titolipos-1 )) nuovoct=${titolo:0:$titolipos} estensione=${titolo:$titolipos} outputvideo=$nuovoct'utf8'$estensione iconv -o $outputvideo -f iso8859-1 -t utf8 $titolo #----------------------- exit 0