Skip to content

FileOps.ReplaceStringFirst

Name Mandatory Description Default Type
⬅️ Input The input of the shard, if any String
Output ➡️ The resulting output of the shard String
OldStr No String to find none StringVar(String)
NewStr No Replacement string none StringVar(String)
WorkDir No Working directory for resolving relative paths none NoneStringVar(String)
EnableGitCommit No Auto-commit to git if in repository false BoolVar(Bool)

Replace the first occurrence of a string in file