I'm trying to replace the first occurrence in a file using
sed -i s/he/He/ dummy.txt
Instead of replacing first occurrence, it replaces all the occurrences, even without
According to the documentation it should replace the first only.
sed version which is:
GNU sed version 4.1.5
Am I missing anything? Or does the behavior differ for different