Renaming Multiple Files with a "." on the end of the filename
I am trying to port several thousand files from a linux workstation to a windows workstation. The windows workstation refuses to work with files that have a "." at the end of the filename. I have tried to write a shell script but it does not seem to work. Is there an easier way to remove the "." at the end of the filename or do am I writing my regular expression wrong?
for i in `ls *.`; do t=`echo i$ | sed 's/\(.*\)/\1/'` mv $i $t done Thanks, David B. |
Code:
for i in *. ; do Code:
for i in *. ; do |
All times are GMT -5. The time now is 12:03 PM. |