removing %cod lines

10 views
Skip to first unread message

Yuriko Oshima-Takane

unread,
Apr 5, 2012, 11:09:58 AM4/5/12
to chib...@googlegroups.com

Hi Brian and colleagues,

 

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.

 

Yuriko

 

 

 

Kevin Donnelly

unread,
Apr 5, 2012, 11:31:37 AM4/5/12
to chib...@googlegroups.com
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

Brian MacWhinney

unread,
Apr 5, 2012, 2:11:17 PM4/5/12
to chib...@googlegroups.com
Dear Yuriko,

    This is in section 9.15.1 of the manual.

--Brian MacWhinney

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

Yuriko Oshima-Takane

unread,
Apr 5, 2012, 2:27:19 PM4/5/12
to chib...@googlegroups.com
Hi Kevin,

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

Yuriko

-----Original Message-----
From: chib...@googlegroups.com [mailto:chib...@googlegroups.com] On Behalf
Of Kevin Donnelly
Sent: Thursday, April 05, 2012 11:32 AM
To: chib...@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

--

Reply all
Reply to author
Forward
0 new messages