in reply to At each change in...
But detecting the first occurrence of a chain is quite another problem that can be solved by memorizing the number of occurences as value associated to the string:
The loop may have to be explicit depending on the source of your data.perl -ne 'chomp; print "new $_\n" unless $a{$_}++' nm_of_processed_fi +le
-- stefp -- check out TeXmacs wiki
|
|---|