Help please, I have multiple files in a folder that end with .999.dat, I need to rename the files to "filename.dat" (need to get rid of the .999) ie file name payroll123a.999.dat need to rename to payroll123a.dat. thanks
#!/bin/ksh cd <to_your_directory> for i in *\.999.dat do mv $i `echo "$i"|sed 's/\.999//g'` done
Nails We see your name a lot on this fine site helping other people, we would like to thank you for all your help and support. Thank you
John: You're welcome. And thank you for the kind words. I appreciate it.
Regards,
nails
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |