Πολλαπλή μεταονομασία αρχείων σε 1.txt,2.txt,..., κ.λ.π

I.Ioannou roryt at roryt.gr
Fri Oct 5 16:53:01 EEST 2001


"Thomas N. Stefanidis" wrote:
> 
> Καλησπέρα,
> Έχω ένα φάκελο με κείμενα .txt και θέλω να τα αλλάξω όλα τα ονόματα
> κάνωντας τα 1.txt,2.txt,3.txt .κ.λ.π......
> Επειδή είναι πολλά,υπάρχει κάποιος τρόπος(ίσως με κάποιο perl
> αρχειάκι) να τα αλλάξω όλα αυτόματα αντί να τα κάνω ένα-ένα με το
> χέρι?


Thes na ta kaneis rename me arithmous 1,2,3,4 klp ?
ME /bin/bash , tha sta kaneis rename basi tou sort
tou onomatos tous, alliws pekse me to sort, mesa sthn 'for'

let i=1
for f in *.txt
do
   mv $f $i.txt
   let i+=1
done



More information about the Linux-greek-users mailing list