Hi
I was going to practice some regex in freebsd 11.1, but grep in BSD doesn't support -P perl switch
grep: The -P option is not supported
I then tried to used sed to replace the first letter and make it uppercase like so: Hello There
Code:
echo "hello there" | sed 's/\<\(\w\)/\u\1/g'
echo "hello there" | sed 's/\b\(\w\)/\u\1/g'
echo "hello there" | sed 's/\<\(.)/\u\1/g'
but these didn't work either.
However, it does work in linux.
I'm surprised how limited the commands in BSDs are to linux.