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
::::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 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.
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
--