nodejsscript • Docs
nodejsscript / s / sed
Reads an input string from file and performs a JavaScript replace()
on the input using the given search regex and replacement string or function.
Available options:
- -i
: Replace contents of 'file' in-place. Note that no backups will be created!
The regular expression to use for search.
The replacement.
The files to process.
sed(
options
,searchRegex
,replacement
,files
):ShellString
Reads an input string from file and performs a JavaScript replace()
on the input using the given search regex and replacement string or function.
• options: string
Available options:
- -i
: Replace contents of 'file' in-place. Note that no backups will be created!
• searchRegex: string
| RegExp
The regular expression to use for search.
• replacement: string
The replacement.
• files: string
[]
The files to process.
The new string after replacement.
The new string after replacement.
Available options:
- -i
: Replace contents of 'file' in-place. Note that no backups will be created!
The regular expression to use for search.
The replacement.
The files to process.
sed(
options
,searchRegex
,replacement
, ...files
):ShellString
Reads an input string from file and performs a JavaScript replace()
on the input using the given search regex and replacement string or function.
• options: string
• searchRegex: string
| RegExp
• replacement: string
• ...files: string
[]
Available options:
- -i
: Replace contents of 'file' in-place. Note that no backups will be created!
The regular expression to use for search.
The replacement.
The files to process.
sed(
searchRegex
,replacement
,files
):ShellString
Reads an input string from file and performs a JavaScript replace()
on the input using the given search regex and replacement string or function.
• searchRegex: string
| RegExp
The regular expression to use for search.
• replacement: string
The replacement.
• files: string
[]
The files to process.
The new string after replacement.
The new string after replacement.
Available options:
- -i
: Replace contents of 'file' in-place. Note that no backups will be created!
The regular expression to use for search.
The replacement.
The files to process.
sed(
searchRegex
,replacement
, ...files
):ShellString
Reads an input string from file and performs a JavaScript replace()
on the input using the given search regex and replacement string or function.
• searchRegex: string
| RegExp
• replacement: string
• ...files: string
[]
Available options:
- -i
: Replace contents of 'file' in-place. Note that no backups will be created!
The regular expression to use for search.
The replacement.
The files to process.