Substitute first match per line sed
Replace the first occurrence of 'foo' with 'bar' per line
sed 's/foo/bar/' file.txt
more sed
all 15 commands →
Replace the first occurrence of 'foo' with 'bar' per line
sed 's/foo/bar/' file.txt