<div dir="ltr">Hi Leonid,<div><br></div><div>Thank you so much for the help. Your command expression fixed the 4th problem.:-)</div><div><br></div><div>Awesome, I will email you for more details on batch editing those folders. </div><div><br></div><div>Thank you very much for being so generous with your time and knowledge.</div><div><br></div><div>Best,<br>Elnaz </div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><br></p></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 11, 2021 at 6:06 PM Leonid Spektor <<a href="mailto:spektor@andrew.cmu.edu">spektor@andrew.cmu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Elnaz,<div><br></div><div>For the number 4. you can try command <font color="#ff2600">chstring -w +t@Participants: +s"@Participants: * " "@Participants:STU " *.cha</font> </div><div><br></div><div>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><br></div><div>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"><a href="mailto:spektor@andrew.cmu.edu" target="_blank">spektor@andrew.cmu.edu</a></font>.</div><div><br></div><div><br></div><div><div><br>Leonid.
</div>
<div><br><blockquote type="cite"><div>On Aug 11, 2021, at 20:17, Elnaz Kia <<a href="mailto:ek325@nau.edu" target="_blank">ek325@nau.edu</a>> wrote:</div><br><div><div dir="ltr"><div>Dear Leonid,</div><div><br></div><div>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><p style="margin:0in;font-family:Calibri;font-size:11pt"></p></div><div><div><b>Form A</b></div><div>@Begin<br>@Languages: fra<br>@Participants: <b>F0001 </b>IDf0001 Student<br>@ID: fra|<b>corpus</b>|<b>F0001</b>|0;00.00|male|||Student||<b>|</b><br>@Media: f0001c05ri4_1, audio<br>@Transcriber: Matteo Fiorini<br>@Comment: euh signals hesitation<br>@Situation: Introductions<br>*<b>F0001</b>: je m' appelle (..) NAME NAME (.) euh (.) . <br>*<b>F0001</b>: NAME c' est mon dernier nom [:: nom de famille] . <br>*<b>F0001</b>: et ça vienne <de> [/] de Allemagne parce que mon maman <et> [/] et<br> mon papa est Allemagne [:: allemands] . <br>*<b>F0001</b>: <et alors je> [//] euh (.) alors mon dernier nom<br> [:: nom de famille] NAME est Allemagne [:: allemand] . <br>@End<br><br></div><div><b>Form B</b></div><div>@Begin<br>@Languages: fra<br>@Participants: <font color="#ff0000">STU </font>IDf0001 Student<br>@ID: fra|<font color="#ff0000">mussel</font>|<font color="#ff0000">STU</font>|0;00.00|male|||Student||<font color="#ff0000">IDf0001</font>|<br>@Media: f0001c05ri4_1, audio<br>@Transcriber: Matteo Fiorini<br>@Comment: euh signals hesitation<br>@Situation: Introductions<br>*<font color="#ff0000">STU</font>: je m' appelle (..) NAME NAME (.) euh (.) . <br>*<font color="#ff0000">STU</font>: NAME c' est mon dernier nom [:: nom de famille] . <br>*<font color="#ff0000">STU</font>: et ça vienne <de> [/] de Allemagne parce que mon maman <et> [/] et<br> mon papa est Allemagne [:: allemands] . <br>*<font color="#ff0000">STU</font>: <et alors je> [//] euh (.) alors mon dernier nom<br> [:: nom de famille] NAME est Allemagne [:: allemand] . <br>@End<br><br></div><div><div><div style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:lime">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"><span style="background:yellow">chstring +re +w +t* +l +s"\**:" "\*STU:" *.cha</span></div><div style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:yellow">ren +re -f *.chstr.cex *.cha</span></div><p style="margin:0in;font-family:Calibri;font-size:11pt"> </p><div style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:yellow">chstring +re +w +y +s"\**:" "\*STU:" *.txt</span></div><p style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:lime"></span></p><div style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:yellow">ren +re -f *.chstr.cex *.txt</span></div></div><div><br></div><div><div style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:lime">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"><span style="background:yellow">chstring +re +w +t@
+s"|corpus|*|" "|mussel|STU|" *.cha</span></div><div style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:yellow">ren +re -f *.chstr.cex *.cha</span></div><p style="margin:0in;font-family:Calibri;font-size:11pt"> </p><div style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:yellow">chstring +re +w +y
+s"|corpus|*|" "|mussel|STU|" *.txt</span></div><p style="margin:0in;font-family:Calibri;font-size:11pt">
</p><div style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:yellow">ren +re -f *.chstr.cex *.txt</span></div><div style="margin:0in;font-family:Calibri;font-size:11pt"><br></div><div style="margin:0in;font-family:Calibri;font-size:11pt"><span style="background:lime">3. To change the optional speaker name (last field) in line @ID</span></div><div style="margin:0in;font-family:Calibri;font-size:11pt">*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"><span style="font-size:11pt">chstring +re +w +t@ +s"|Student|||" "|Student||IDc0002|" *.cha</span><br></div><div style="margin:0in;font-family:Calibri;font-size:11pt">ren +re -f *.chstr.cex *.cha</div><p style="margin:0in;font-family:Calibri;font-size:11pt"> </p><div style="margin:0in;font-family:Calibri;font-size:11pt">chstring +re +w +y +s"|Student|||" "|Student||IDc0002|" *.txt</div><p style="margin:0in;font-family:Calibri;font-size:11pt"></p><div style="margin:0in;font-family:Calibri;font-size:11pt">ren +re -f *.chstr.cex *.txt</div></div><div><br></div><div><span style="font-family:Calibri;font-size:14.6667px;background-color:rgb(0,255,0)">4. To change the 1st field in line @Participant</span><br></div><div><span style="font-family:Calibri;font-size:14.6667px">*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)"><br></span></div><div><span style="font-family:Calibri;font-size:14.6667px">Tried this command and a few others, no chance!</span></div>chstring +w +d +s"F0010 IDf0010 Student" "STU IDf0010 Student" *.cha</div><div><br></div><div><b>Questions:</b></div><div>a) how can I achieve the last change (4)?</div><div>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><br></div><div>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><br></div><div>Thank you so much for your help!</div><div>Elnaz</div><div><br></div><div><br></div><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><span style="font-size:19pt;font-family:"Brush Script MT";color:rgb(0,56,108)">Elnaz
Kia, Ph.D</span><span style="font-size:18pt;font-family:"Brush Script MT";color:rgb(0,56,108)">.</span><span style="font-size:12pt;font-family:"Brush Script MT";color:rgb(0,56,108)"> </span><span style="font-size:12pt;font-family:"Times New Roman",serif;color:rgb(0,56,108)">(she,
her, hers)</span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><i><span style="font-size:12pt;font-family:"Times New Roman",serif"><a href="https://l2trec.utah.edu/about/staff-directory.php" target="_blank">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"><span style="font-size:12pt;font-family:"Times New Roman",serif;color:rgb(13,13,13)">Second Language Teaching and Research
Center (L2TReC)</span></a><span><span style="font-size:12pt;color:rgb(13,13,13)"></span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><span><span style="font-size:12pt;font-family:"Times New Roman",serif">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"><span style="font-size:12pt;font-family:"Times New Roman",serif;color:rgb(13,13,13)">LinkedIn</span></a><span><span style="color:rgb(13,13,13)"></span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><a href="https://elnazkia.weebly.com/" target="_blank"><span style="font-size:12pt;font-family:"Times New Roman",serif">Personal
Website</span></a><span><span style="color:rgb(13,13,13)"></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"></p></div></div></div></div></div></div></div></div><div><br></div>
-- <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" target="_blank">chibolts+unsubscribe@googlegroups.com</a>.<br>
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" target="_blank">https://groups.google.com/d/msgid/chibolts/CAOwOJY%3Df6JUMXRFvKkshZ609pnWUq1tNHRsQbX_VKm8q7WxNuw%40mail.gmail.com</a>.<br>
</div></blockquote></div><br></div></div>
<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" target="_blank">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" target="_blank">https://groups.google.com/d/msgid/chibolts/EC5A6E83-FC97-4C81-AA85-68163B21C005%40andrew.cmu.edu</a>.<br>
</blockquote></div>
<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/CAOwOJY%3DB6jtn-Mvbco-Z00EZALZSw2r%2BDantRcy1waChH1XHFQ%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/CAOwOJY%3DB6jtn-Mvbco-Z00EZALZSw2r%2BDantRcy1waChH1XHFQ%40mail.gmail.com</a>.<br />