Friedrich Dominicus wrote:
>[...] How can I combine the output with a line-number can I put that
> into the filter? Or do I have to found another solution?

Don't fear! Mr. One-Liner comes to the rescue:    ;-)

   longerThan fn lenlim = readFile fn >>= lines .| filter (length .| (>lenlim)) .| zip 
[1..] .| map (\(n,l) -> shows n ") " ++ l) .| unlines .| putStr

[ This mail is optimised for 1280x1024 in landscape mode... ]

Cheers,
   Sven
-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne


Reply via email to