I've got three comma separated columns. Last name, First name, social.
I'm trying to capitalize all characters in the last name column using
sed 's/\([^,]*\)/\U\1/' foo.file
In osx this command is appending a capital U to the beginning of each line, rather than capitalizing the Last name column, but it works as expected on my ubuntu instance.
I cannot figure out why this is happening.
The man page lists a bug "Multibyte characters cannot be used as delimiters with the ''s'' and ''y'' commands. I wasn't sure if / was a multibyte character or not (didn't think that it was), but the same thing happens if I replace the delimiter with 'i'. So this isn't the issue.