renaming files as a batch

Leonid Spektor spektor at andrew.cmu.edu
Tue May 20 19:12:24 UTC 2025


Hi Emily,

Please try commands below and see which one works best for you. Make sure to backup files in case rename command does something wrong.

ren Play_T33_CCX_*_*.cha Play_T33_CCX_*.cha

ren *X_*_*.cha *X_*.cha

ren *_*_*_*_*.cha *_*_*_*.cha


Leonid.

> On May 20, 2025, at 14:04, Emily Harrington <emily.kae.harrington at gmail.com> wrote:
> 
> Hello,
> 
> I am trying to rename CHAT files to have consistent file names. However, I am struggling to get the ren command to do this. 
> 
> Here are examples of the file names:
> Play_T33_CCX_1002_cc.sltin.cha
> Play_T33_CCX_1011_video_z.sltin.cha
> PLAY_T33_CCX_1062_video_z.cha
> 
> Ideally, I'd like all files to be named Play_T33_CCX_#### where the #### is the unique identifier for that participant. This would remove the extra information after the unique identifier which differs across the file names. 
> 
> Is there a way to do this as a batch? 
> 
> Thank you,
> 
> Emily Harrington, PhD, CCC-SLP
> University of Illinois Urbana-Champaign 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups "chibolts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+unsubscribe at googlegroups.com <mailto:chibolts+unsubscribe at googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/chibolts/dc147b9b-35f6-4b83-82b9-748890f07f6cn%40googlegroups.com <https://groups.google.com/d/msgid/chibolts/dc147b9b-35f6-4b83-82b9-748890f07f6cn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups "chibolts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+unsubscribe at googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chibolts/9F0AC7A1-E264-42F4-A50E-655B26B5275A%40andrew.cmu.edu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/chibolts/attachments/20250520/87ca9710/attachment.htm>


More information about the Chibolts mailing list