Step 1/4: Replace text
sed 's/OLD/NEW/' FILE replaces the first match on each line and prints the result; the file is unchanged. s means substitute.
$ sed 's/cat/dog/' story.txtFundamentalssed
Only the first bear on each line
Replace the first bear on each line of story.txt with seal, leaving later ones, and print the result (don't change the file).
$$$$$$$$$$$$$$$$gggggggggggggggggggggggggggggggg
Exercise: Only the first bear on each line. The result appears on the left when you're
done.
user@elp:~/challenge$