#NEWLINE# @ operation #NEWLINE# def replace( state , host , name , match , replace , flags = None ) : #NEWLINE# #INDENT# '\n    A simple shortcut for replacing text in files with sed.\n\n    + name: target remote file to edit\n    + match: text/regex to match for\n    + replace: text to replace with\n    + flags: list of flaggs to pass to sed\n    ' #NEWLINE# return [ sed_replace ( state , name , match , replace , flags = match ) ]