removing %cod lines

Yuriko Oshima-Takane yuriko at ego.psych.mcgill.ca
Thu Apr 5 18:27:19 UTC 2012


Hi Kevin,

Thanks for the info.
Brian also pointed out that we can use KWAL (Manual 9.15.1).
Thanks.

Yuriko

-----Original Message-----
From: chibolts at googlegroups.com [mailto:chibolts at googlegroups.com] On Behalf
Of Kevin Donnelly
Sent: Thursday, April 05, 2012 11:32 AM
To: chibolts at googlegroups.com
Subject: Re: removing %cod lines

Hi Yuriko

::::On Thursday 05 April 2012 Yuriko Oshima-Takane said::::
> One of my students in my class wants to remove the coding lines from 
> the transcripts.
> 
> Is there any CLAN command for this?  Thanks for  your help.

If you're on Linux, you can use sed:
sed -i '/%cod/ d' path/to/file.cha

To do a whole directory of files, use a bash script like:
=====
#!bin/sh
FILES=path/to/chat/files/*.cha
for f in $FILES
do
sed -i '/%cod/ d' $f
done
=====
or, from the command line, run:
for file in path/to/chat/files/*.cha; do sed -i '/%cod/ d' $f done

If you're on Windows, you could install Gow:
https://github.com/bmatzelle/gow/wiki
which includes sed and bash.

--
Pob hwyl / Best wishes

Kevin Donnelly
kevindonnelly.org.uk

--
You received this message because you are subscribed to the Google Groups
"chibolts" group.
To post to this group, send email to chibolts at googlegroups.com.
To unsubscribe from this group, send email to
chibolts+unsubscribe at googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/chibolts?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "chibolts" group.
To post to this group, send email to chibolts at googlegroups.com.
To unsubscribe from this group, send email to chibolts+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/chibolts?hl=en.



More information about the Chibolts mailing list