I want to replace every instance of int in a very large codebase with int32_t, for portability reasons. I have unsuccessfully tried :
sed s/'\bint\b'/' int32_t '/g
and it fails to match instances where the int is the first thing on the line. I am completely at a loss for how to make it match then.
Any ideas?