removing %cod lines

Kevin Donnelly kevin at dotmon.com
Thu Apr 5 15:31:37 UTC 2012


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.



More information about the Chibolts mailing list