renaming files as a batch

Emily Harrington emily.kae.harrington at gmail.com
Wed May 21 15:43:46 UTC 2025


Hi Leonid,

The first command worked well.

Thank you!

Emily

On Tue, May 20, 2025 at 2:12 PM Leonid Spektor <spektor at andrew.cmu.edu>
wrote:

> 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.
> 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 a topic in the
> Google Groups "chibolts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/chibolts/849ne54ZjF0/unsubscribe.
> To unsubscribe from this group and all its topics, 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
> <https://groups.google.com/d/msgid/chibolts/9F0AC7A1-E264-42F4-A50E-655B26B5275A%40andrew.cmu.edu?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/CAKkGgA92N%3DxYdXcRBe%3DxB%2BjOn0esEFi4P%2B4X8Xtqt-M2Qjpk4Q%40mail.gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/chibolts/attachments/20250521/3d274a3d/attachment.htm>


More information about the Chibolts mailing list