Annotation of 43BSD/contrib/icon/book/f/locate3.icn, revision 1.1

1.1     ! root        1: procedure locate(s)
        !             2:    count := 0
        !             3:    lineno := 0
        !             4:    while line := read() do {
        !             5:       lineno := lineno + 1
        !             6:       if find(s,line) then {
        !             7:          write(lineno,": ",line)
        !             8:          count := count + 1
        !             9:          }
        !            10:       }
        !            11:    if count > 0 then return count else fail
        !            12: end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.