sed
can perform text transformations on input stream from a file or a pipeline. Example:
echo 'C:\foo\bar.xml' | sed 's/\\/\//g'
outputs:
C:/foo/bar.xml
More Related Contents:
- Bash tool to get nth line from a file
- Using sed to mass rename files
- Escaping forward slashes in sed command [duplicate]
- Convert line endings [duplicate]
- How to match a single quote in sed
- Extract version number from a string
- how to delete the duplicate lines in file except the first matched line
- How to grep for case insensitive string in a file?
- While loop stops reading after the first line in Bash
- How can I compare numbers in Bash?
- Pipe output and capture exit status in Bash
- Redirect stderr and stdout in Bash [duplicate]
- Why equal to operator does not work if it is surrounded by space?
- Which characters need to be escaped when using Bash?
- Capturing Groups From a Grep RegEx
- Why does “local” sweep the return code of a command?
- Recursively rename files using find and sed
- bash : Illegal number
- Batch renaming files with Bash
- Shell redirection i/o order
- How to generate random number in Bash?
- “Invalid Arithmetic Operator” when doing floating-point math in bash
- Colorized grep — viewing the entire file with highlighted matches
- How to pass in password to pg_dump?
- Select random lines from a file
- Variables getting reset after the while read loop that reads from a pipeline
- Should I use a Shebang with Bash scripts?
- Using Bash to display a progress indicator (spinner) [duplicate]
- How to update one file in a zip archive
- How to read variables from file, with multiple variables per line?