ciwei wrote:
# ls -l
-rw-r--r-- 1 root other 0 Mar 19 16:24 this is the first file
-rw-r--r-- 1 root other 0 Mar 19 16:24 this is the second file
-rw-r--r-- 1 root other 0 Mar 19 16:24 this is the third file
I want to rename the files, to say, first, second, etc
# ls -1 | perl -ne 'pri
# ls -l
-rw-r--r-- 1 root other 0 Mar 19 16:24 this is the first file
-rw-r--r-- 1 root other 0 Mar 19 16:24 this is the second file
-rw-r--r-- 1 root other 0 Mar 19 16:24 this is the third file
I want to rename the files, to say, first, second, etc
# ls -1 | perl -ne 'print $1,"\n" if