How do you get sed to interpret slash commands like \n \t for example? I did a command like the following:
It works fine on Linux but not FreeBSD and I have no clue what I am doing wrong.
cat /etc/passwd | grep ^root | sed -E -e 's/:/&\t/g'
. The output will just be the following with a bunch of t characters:
Code:
root:t*:t0:t0:tCharlie &:t/root:t/usr/local/bin/bash
It works fine on Linux but not FreeBSD and I have no clue what I am doing wrong.