Hsed-0.2.2: Stream Editor in Haskell

Portabilitynon-portable
Stabilityexperimental
Maintainervirukav@gmail.com

Hsed.Sed

Description

This module provides functions to execute the sed script. See execScript below for an example

Synopsis

Documentation

execScript :: [FilePath] -> SedScript -> IO ByteStringSource

Execute the sed script and print the output to ByteString. Example. Suppose the ..testsTransform.in file contains the line 'Hello world!'. execScript ["..testsTransform.in"] "yabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/" will produce 'HELLO WORLD!' bytestring.

execScript_ :: [FilePath] -> SedScript -> IO ()Source

Execute the sed script and print the result to stdout