<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Elnaz,<div class=""><br class=""></div><div class="">For the number 4. you can try command <font color="#ff2600" class="">chstring -w +t@Participants: +s"@Participants: * " "@Participants:STU " *.cha</font> </div><div class=""><br class=""></div><div class="">For the number 3., if each file or even each folder has its own unique ID*, then there isn't much automation you can achieve. You can create a batch file with multiple CHSTRING commands with different IDs pointing to different subdirectories of corresponding data files. But, to be more specific I need to know what system you are using, i.e. Mac or PC, and the layout of your data files directory tree structure.</div><div class=""><br class=""></div><div class="">I would suggest that you email to me directly instead of chibolts about it, since this is getting much more specific to your particular situation. My email address is <font color="#0433ff" class=""><a href="mailto:spektor@andrew.cmu.edu" class="">spektor@andrew.cmu.edu</a></font>.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><br class="">Leonid.
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Aug 11, 2021, at 20:17, Elnaz Kia <<a href="mailto:ek325@nau.edu" class="">ek325@nau.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Dear Leonid,</div><div class=""><br class=""></div><div class="">I have one more question about my recent inquiry. Per Brian's and your advice, I am in the process of changing the participant IDs and making other necessary revisions. In order to change the transcriptions from form A to form B (see below), I created the following commands. I couldn't find a more dignified path. :-) </div><div class=""><p style="margin:0in;font-family:Calibri;font-size:11pt" class=""></p></div><div class=""><div class=""><b class="">Form A</b></div><div class="">@Begin<br class="">@Languages: fra<br class="">@Participants: <b class="">F0001 </b>IDf0001 Student<br class="">@ID: fra|<b class="">corpus</b>|<b class="">F0001</b>|0;00.00|male|||Student||<b class="">|</b><br class="">@Media: f0001c05ri4_1, audio<br class="">@Transcriber: Matteo Fiorini<br class="">@Comment: euh signals hesitation<br class="">@Situation: Introductions<br class="">*<b class="">F0001</b>: je m' appelle (..) NAME NAME (.) euh (.) . <br class="">*<b class="">F0001</b>: NAME c' est mon dernier nom [:: nom de famille] . <br class="">*<b class="">F0001</b>: et ça vienne <de> [/] de Allemagne parce que mon maman <et> [/] et<br class=""> mon papa est Allemagne [:: allemands] . <br class="">*<b class="">F0001</b>: <et alors je> [//] euh (.) alors mon dernier nom<br class=""> [:: nom de famille] NAME est Allemagne [:: allemand] . <br class="">@End<br class=""><br class=""></div><div class=""><b class="">Form B</b></div><div class="">@Begin<br class="">@Languages: fra<br class="">@Participants: <font color="#ff0000" class="">STU </font>IDf0001 Student<br class="">@ID: fra|<font color="#ff0000" class="">mussel</font>|<font color="#ff0000" class="">STU</font>|0;00.00|male|||Student||<font color="#ff0000" class="">IDf0001</font>|<br class="">@Media: f0001c05ri4_1, audio<br class="">@Transcriber: Matteo Fiorini<br class="">@Comment: euh signals hesitation<br class="">@Situation: Introductions<br class="">*<font color="#ff0000" class="">STU</font>: je m' appelle (..) NAME NAME (.) euh (.) . <br class="">*<font color="#ff0000" class="">STU</font>: NAME c' est mon dernier nom [:: nom de famille] . <br class="">*<font color="#ff0000" class="">STU</font>: et ça vienne <de> [/] de Allemagne parce que mon maman <et> [/] et<br class=""> mon papa est Allemagne [:: allemands] . <br class="">*<font color="#ff0000" class="">STU</font>: <et alors je> [//] euh (.) alors mon dernier nom<br class=""> [:: nom de famille] NAME est Allemagne [:: allemand] . <br class="">@End<br class=""><br class=""></div><div class=""><div class=""><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:lime" class="">1. To change the participant ID in the main lines in chat & text files (applies to all languages):</span></div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:yellow" class="">chstring +re +w +t* +l +s"\**:" "\*STU:" *.cha</span></div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:yellow" class="">ren +re -f *.chstr.cex *.cha</span></div><p style="margin:0in;font-family:Calibri;font-size:11pt" class=""> </p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:yellow" class="">chstring +re +w +y +s"\**:" "\*STU:" *.txt</span></div><p style="margin:0in;font-family:Calibri;font-size:11pt" class=""><span style="background:lime" class=""></span></p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:yellow" class="">ren +re -f *.chstr.cex *.txt</span></div></div><div class=""><br class=""></div><div class=""><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:lime" class="">2. To change the corpus name and the next field in line @ID in chat & text files (applies to all languages):</span></div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:yellow" class="">chstring +re +w +t@
+s"|corpus|*|" "|mussel|STU|" *.cha</span></div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:yellow" class="">ren +re -f *.chstr.cex *.cha</span></div><p style="margin:0in;font-family:Calibri;font-size:11pt" class=""> </p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:yellow" class="">chstring +re +w +y
+s"|corpus|*|" "|mussel|STU|" *.txt</span></div><p style="margin:0in;font-family:Calibri;font-size:11pt" class="">
</p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:yellow" class="">ren +re -f *.chstr.cex *.txt</span></div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><br class=""></div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="background:lime" class="">3. To change the optional speaker name (last field) in line @ID</span></div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">*Note: These commands has to be run separately for each folder, since the ID changes in each folder.</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""><span style="font-size:11pt" class="">chstring +re +w +t@ +s"|Student|||" "|Student||IDc0002|" *.cha</span><br class=""></div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">ren +re -f *.chstr.cex *.cha</div><p style="margin:0in;font-family:Calibri;font-size:11pt" class=""> </p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">chstring +re +w +y +s"|Student|||" "|Student||IDc0002|" *.txt</div><p style="margin:0in;font-family:Calibri;font-size:11pt" class=""></p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">ren +re -f *.chstr.cex *.txt</div></div><div class=""><br class=""></div><div class=""><span style="font-family:Calibri;font-size:14.6667px;background-color:rgb(0,255,0)" class="">4. To change the 1st field in line @Participant</span><br class=""></div><div class=""><span style="font-family:Calibri;font-size:14.6667px" class="">*Note: These commands have to be run separately for each folder, since the ID changes in each folder.</span><span style="font-family:Calibri;font-size:14.6667px;background-color:rgb(0,255,0)" class=""><br class=""></span></div><div class=""><span style="font-family:Calibri;font-size:14.6667px" class="">Tried this command and a few others, no chance!</span></div>chstring +w +d +s"F0010 IDf0010 Student" "STU IDf0010 Student" *.cha</div><div class=""><br class=""></div><div class=""><b class="">Questions:</b></div><div class="">a) how can I achieve the last change (4)?</div><div class="">b) I am using batch to run the commands in 1 and 2 (highlighted in yellow). Is it possible to create the search strings for 3 and 4 in a way that it is not dependent on specific IDs so I could run all the commands in batch for all the directories and subdirectories instead of running them on individual folders?</div><div class=""><br class=""></div><div class="">I am so sorry for asking so many questions. I spend hours digging in the manuals and playing with the commands before asking you. :-(</div><div class=""><br class=""></div><div class="">Thank you so much for your help!</div><div class="">Elnaz</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><span style="font-size:19.0pt;font-family:"Brush Script MT";color:#00386c" class="">Elnaz
Kia, Ph.D</span><span style="font-size:18.0pt;font-family:"Brush Script MT";color:#00386c" class="">.</span><span style="font-size:12.0pt;font-family:"Brush Script MT";color:#00386c" class=""> </span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#00386c" class="">(she,
her, hers)</span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><i class=""><span style="font-size: 12pt; font-family: "Times New Roman", serif;" class=""><a href="https://l2trec.utah.edu/about/staff-directory.php" target="_blank" class="docs-creator">Post-Doctoral Research
Associate</a></span></i></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><a href="https://l2trec.utah.edu/" target="_blank" class="docs-creator"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0d0d0d" class="">Second Language Teaching and Research
Center (L2TReC)</span></a><span class=""><span style="font-size:12.0pt;color:#0d0d0d" class=""></span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><span class=""><span style="font-size: 12pt; font-family: "Times New Roman", serif;" class="">University of Utah</span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><a href="https://www.linkedin.com/in/elnaz-kia?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_contact_details%3B%2FResGVF2SMGMAxhocdPnRw%3D%3D" target="_blank" class="docs-creator"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0d0d0d" class="">LinkedIn</span></a><span class=""><span style="color:#0d0d0d" class=""></span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><a href="https://elnazkia.weebly.com/" target="_blank" class="docs-creator"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">Personal
Website</span></a><span class=""><span style="color:#0d0d0d" class=""></span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><img src="https://docs.google.com/uc?export=download&id=1-im6hnX4Kj15S9S-Fy7_gMFj4Nn-RGP_&revid=0B56lCp579fCjaXhEQlhaSndZdjgxWDRrRk8wMWFHN0wydGFZPQ" class=""></p></div></div></div></div></div></div></div></div><div class=""><br class="webkit-block-placeholder"></div>
-- <br class="">
You received this message because you are subscribed to the Google Groups "chibolts" group.<br class="">
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com" class="">chibolts+unsubscribe@googlegroups.com</a>.<br class="">
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/CAOwOJY%3Df6JUMXRFvKkshZ609pnWUq1tNHRsQbX_VKm8q7WxNuw%40mail.gmail.com?utm_medium=email&utm_source=footer" class="">https://groups.google.com/d/msgid/chibolts/CAOwOJY%3Df6JUMXRFvKkshZ609pnWUq1tNHRsQbX_VKm8q7WxNuw%40mail.gmail.com</a>.<br class="">
</div></blockquote></div><br class=""></div></body></html>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "chibolts" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com">chibolts+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/EC5A6E83-FC97-4C81-AA85-68163B21C005%40andrew.cmu.edu?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/EC5A6E83-FC97-4C81-AA85-68163B21C005%40andrew.cmu.edu</a>.<br />