I am working in MacOS 10.12 and I have 100 files such as this:
My file <structure_is> like this <and_maybe_like> this,
but not quite like this.
But there might be <stuff> like this, too.
I have been trying to convert all of the items in <> to uppercase to see the file look like this:
My file <STRUCTURE_IS> like this <AND_MAYBE_LIKE> this,
but not quite like this.
But there might be <STUFF> like this, too.
I tried using:
find . -name "\*" | xargs sed 's/\<([a-z_][^>]*)\>/\U&/g'
I have also tried using gsed (home-brew):
find . -name "\*" | xargs gsed 's/\<([a-z_][^>]*)\>/\U&/g'
But all I get out is the contents of the files themselves to stdout.
How do I do this?
Kindest regards!