úÎpAeĞKReplaces every occurance of the given regexp with the replacement string. C Modification of the subRegex function from regex-posix package. Search pattern  Input string Replacement text  Occurrence  non-portable experimentalvirukav@gmail.com1 %Flags used in the substitute command MThe allowed sequence of the Occurrence and OutputPat flags in the substitute  function HThe flag to control the pattern space output in the substitute function .Used in the replacement string. An appersand (&) will be replaced by the * string matched the BRE. The characters n, where n is a digit will be < replaced by the corresponding back-reference expression. DA permissable address is representing by zero, one or two addresses ZAn address is either a decimal number that counts input lines cumulatively across files,  a O character that addresses the last line of input, or a context address as BRE 5Functions represents a single-character command verb  ignore spaces 9: - label a line in the scipt for transfering by b or t. 4y - transform each char by position in Text to Text +x - exchange pattern space with hold space 5w - write the line to file if a replacement was done !>t - branch to line marked by :label if substitution was made "'s - substitute Replacement for Pattern #.r - add contents of file to the pattern space $$q - quit when address is encounterd %8P - print (up to newline) of multiline pattern space & p - print the addressed line(s) '7N - add next input line and newline into pattern space (/n - read next line of input into pattern space )@l - list the pattern space, showing non-printing chars in ASCII *5i - insert Text before each line matched by address +>H - add newline followed by pattern space into the hold space ,'h - copy pattern space into hold space ->G - add newline followed by hold space into the pattern space .+g - copy hold space into the pattern space /6D - delete (up to newline) of multiline pattern space 0&d - delete line(s) from pattern space 18c - replace the lines selected by the address with Text 2b - transfer control to Label 38a - append text following each line matched by address 45= - write to standard output the current line number 5{ - group of the sed commands 6Editing commands 71  !"#$%&'()*+,-./012345671   543210/.-,+*)('&%$#"!  !"#$%&'()*+,-./012345677 non-portable experimentalvirukav@gmail.com89:<If an RE is empty last RE used in the last command applied ;<=>?@ABCDEFG;89:;<HIJKLMNOP=>QRST?@ABUVWXYZ[\]^_`abcdefghijkCDEFGlmnopqr89:;<;<=>?@ABCDEFG non-portable experimentalvirukav@gmail.com#stuParsed Sed commands vSuppress the default output wThe last line index xThe current line index y+Is pattern space matches the address range z(The buffer to keep the selected line(s) {+The buffer to keep the line(s) temporarily |$The buffer to keep the append lines }Store the output in the memory ~6If True the Sed output is stored in the memory buffer Exit the stream editor €!Write (w command) files handles $The result of the last substitution ‚Current input file handle ƒ„…†‡ˆ‰Š‹Œ‘’“”•#stuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•#stuvwxyz{|}~€‚tuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‘’“”• non-portable experimentalvirukav@gmail.com4–—Quit ˜DJump to the marked sed command and apply it to the pattern space ™4Reapply the sed script to the current pattern space š>Read the new line to the pattern space and apply sed script ›@Apply the next sed command from the script to the pattern space œŸ#Compile and execute the sed script  Parse the Sed commands ¡3Execute the parsed Sed commands against input data ¢BThe standard input will be used if no file operands are specified £Process the input text files ¤ICyclically append a line of input without newline into the pattern space ¥Read an input line ¦,Manage the flow control of the Sed commands §6Transfer control to the command marked with the label ¨Execute Sed commands ©3Execute the Sed function if the address is matched ª+Check if the address interval is matched «Execute the Sed function ¬'{cmd...}', Groups subcommands enclosed in {} (braces) ­'='= Writes the current line number to standard output as a line ® 'a\\ntext'4 Places the text variable in output before reading  the next input line ¯'b label'0 Transfer control to :label elsewhere in script ° 'c\\ntext'* Replace the lines with the text variable ±d# Delete line(s) from pattern space ²DG Delete first part (up to embedded newline) of multiline pattern space ³g4 Copy contents of hold space into the pattern space ´G4 Append newline followed by contents of hold space # to contents of the pattern space. µh$ Copy pattern space into hold space ¶H; Append newline and contents of pattern space to contents  of the hold space · 'i\\ntext'5 Writes the text variable to standard output before / reading the next line into the pattern space. ¸'t label'9 Jump to line if successful substitutions have been made ¹'spattern replacement/[flags]'$ Substitute replacement for pattern ºn. Read next line of input into pattern space. »l2 List the contents of the pattern space, showing ' nonprinting characters as ASCII codes ¼x2 Exchange contents of the pattern space with the  contents of the hold space ½N5 Append next input line to contents of pattern space ¾p Print the lines ¿P/ Print first part (up to embedded newline) of  multiline pattern space Àq Quit Á 'y/abc/xyz'5 Transform each character by position in string abc ! to its equivalent in string xyz Â'w file'* Append contents of pattern space to file Ãr= Read contents of file and append after the contents of the  pattern space Ä&Skip label, comment and empty command /Print the pattern space to the standard output Å@Check if the current line in the pattern space is the last line ÆQWrites the string to the standard output or save the string in the memory buffer Ç1The same as prnStr, but adds a newline character È!The same as prnStr, but for char É0Print the character as three-digit octal number 7–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÊËÌÄÅÆÇÈÉ4–›š™˜——˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉ non-portable experimentalvirukav@gmail.com:Execute the sed script and print the output to ByteString 7Execute the sed script and print the result to stdout Í      !" #$%&'()*+,-./0123456789:;;<=>>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­o_YmZ®abcde[nrgflhijkq¯°±²³´µ¶^pu·Hsed-0.2Hsed.Sed Hsed.SedRegexHsed.Ast Hsed.Parsec Hsed.SedState Hsed.StreamEd SedScript execScript execScript_Pattern sedSubRegexmatchRELabelTextInvert ReplacementFlagsOccurrencePrintPrintOccurrence OutputPat Occurrence ReplaceAllReplaceAddressAddrbaseGHC.Base$PatLastLine LineNumberSedFunEmptyCmdComment TransformExchange WriteFileTest SubstituteReadFileQuit WriteUpPatPrintPat AppendLinePatNextLineListInsert AppendHold ReplaceHold AppendPat ReplacePat DeletePat DeleteLineChangeBranchAppendLineNumGroupSedCmdStream SedParser ParserStatelastREparseSedparseREaddresssedCmdssedCmdsedFunbareFuntextFunfileFunargFungotoFun emptyStateeoleoleofslashcommasemi backslashnumberinvertpatternaddraddr1addr2 functionsappendchangeinsertreadFile writeFilelabellineNumdelete deletePat replacePat appendPat replaceHold appendHoldlistnext appendLinePatprintPat writeUpPatquitexchangebranchtestgroupcomment transform substituteflagsunescemptyCmdEnvast_ defOutput_ lastLine_curLine_inRange_ patternSpace_ holdSpace_ appendSpace_ memorySpace_ useMemSpace_exit_fileout_subst_curFile_SedStateast defOutputlastLinecurLineinRange patternSpace holdSpace appendSpace memorySpace useMemSpaceexitfileoutsubstcurFileinitEnvsetgetmodify FlowControlExitGotoContinueBreakNextStatusContEOFrunSedcompileexecute processStdin processFileslooplineevalgotoexecCmdsexecCmd matchAddressrunCmd deleteLinewriteFreadF printPatSpace isLastLineprnStrprnStrLnprnChar prnPrintf