Subj : rename help under Linux To : All From : Sean Dennis Date : Thu Dec 19 2024 22:42:26 Hello everybody! I am trying to find a way under Linux to take files of various names and extentions in a single directory to sequential filenames and not change the extensions. After some research on the interwebz, part of the script is functioning: === Cut === ## Rename files cd ./pics for i in *.*; do new=$(printf "%04d.*" "${a}") #04 pad to length of 4 mv -i -- "$i" "$new" ((a++)) done === Cut === This works but it assigns "*" as the file extension. Could I try using "find" instead? I know there are solutions (renameutils, the "File::Rename" Perl code) but they don't work for my needs. -- Sean .... Adultery is the application of democracy to love. --- GoldED+/LNX 1.1.5-b20240209 * Origin: Outpost BBS * Johnson City, TN (618:618/1) .