Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | virukav@gmail.com |
This module provides functions to execute the sed script.
See execScript
below for an example
- execScript :: [FilePath] -> SedScript -> IO ByteString
- execScript_ :: [FilePath] -> SedScript -> IO ()
- type SedScript = String
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.