code: def replace(state, host, name, match, replace, flags=None):
      '''
      A simple shortcut for replacing text in files with sed.
  
      + name: target remote file to edit
      + match: text/regex to match for
      + replace: text to replace with
      + flags: list of flaggs to pass to sed
      '''
  
      yield sed_replace(name, match, replace, flags=flagsf replace(state, host, name, match, replace, flags=None):
      '''
      A simple shortcut for replacing text in files with sed.
  
      + name: target remote file to edit
      + match: text/regex to match for
      + replace: text to replace with
      + flags: list of flaggs to pass to sed
      '''
  
      yield sed_replace(name, match, replace, flags=flags)
docs: A simple shortcut for replacing text in files with sed.
  
      + name: target remote file to edit
      + match: text/regex to match for
      + replace: text to replace with
      + flags: list of flaggs to pass to sed