Over a million developers have joined DZone.

Bash - Rinomina.sh

·
// rinomina i file .wmv in file .asf in una cartella...


#!/bin/sh

#
# rinomina i file di una cartella
#

for I in `ls *.wmv|tr " " "_"`
do
	mv "$(echo $I|tr "_" " ")" "$(echo $(basename $I .wmv) | tr "_" " ").asf"
done
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}