Looks like you are on BSD or Solaris. Try this:
[jaypal:~/Temp] echo 'abc' | sed 's/b/\
> /'
a
c
Add a black slash and hit enter and complete your sed
statement.
More Related Contents:
- Some troubles with using sed and awk [closed]
- Bash tool to get nth line from a file
- Which characters need to be escaped when using Bash?
- Get the date (a day before current time) in Bash
- How to match a single quote in sed
- Extract version number from a string
- What does 2>&1 mean here?
- sed edit file in place
- Bash command line and input limit
- Delete all but the most recent X files in bash
- How do I check if a directory exists in a Bash shell script?
- How to determine the current interactive shell that I’m in (command-line)
- How to use ‘find’ to search for files created on a specific date? [closed]
- Removing colors from output
- How can I remove the first line of a text file using bash/sed script?
- How to do a logical OR operation for integer comparison in shell scripting?
- How can I remove the last character of a file in unix?
- How to go to each directory and execute a command?
- How to remove double-quotes in jq output for parsing json files in bash?
- sed replace with variable with multiple lines [duplicate]
- Copy all files with a certain extension from all subdirectories
- How to find/replace and increment a matched number with sed/awk?
- Print a file’s last modified date in Bash
- Expand variables in sed
- How can I convert tabs to spaces in every file of a directory?
- Multiplication on command line terminal
- How to properly nest Bash backticks
- Using SED with wildcard
- How to delete rows from a csv file based on a list values from another file?
- Subtract two variables in Bash