Re: Q: how to rename file with space in filename

2008-03-20 Thread John W. Krahn
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

Q: how to rename file with space in filename

2008-03-20 Thread ciwei
# 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