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.txt
Fundamentalssed
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).
trNext lesson:chmod