#1 Added by Laofa 1 decade ago Report | Quote
---
#2 Added by Feylin 1 decade ago Report | Quote
#3 Added by Laofa 1 decade ago Report | Quote
#4 Added by Laofa 1 decade ago Report | Quote
#!/bin/shfor name in $(find screenshot*); do newname="$(date -r $name +%y-%m-%d)_$(date +%H%M%S)_$(echo $name|sed "s/screenshot//")" mv $name $newnamedone
sh ./renom.sh
Last edited by Laofa (1 decade ago)
#5 Added by Icus 1 decade ago Report | Quote
#6 Added by Laofa 1 decade ago Report | Quote
#!/bin/shracine=`pwd`;for dossier in $(find -type d); docd $dossier; for name in $(find screenshot*); do newname="$(date -r $name +%y-%m-%d)_$(date +%H%M%S)_$(echo $name|sed "s/screenshot//")"; mv $name $newname; done cd $racine;done
#7 Added by Kaikyo 1 decade ago Report | Quote
# Script pour oter les espaces dans les noms de fichiers et de répertoires#!/bin/shfor a in * ;do b=$(echo $a | sed -e 's/[[:blank:]]/_/g'); if [ -e "$b" ];then echo "">/dev/null; else mv "$a" "$b"; fidone
powered by ryzom-api