Write a sed program. The input arrives on standard input. Replace every occurrence of the text cat with dog, on every line, even inside longer words (concat becomes condog). The match is case sensitive, so Cat and CAT stay as they are. All lines are printed.
Example input:
cat sat on a cat
Concatenate the Cat
Example output:
dog sat on a dog
Condogenate the Cat
(In Concatenate the small letters cat are replaced; the word Cat with a capital C is not.)

Write a sed program. The input arrives on **standard input**. Replace **every** occurrence of the text `cat` with `dog`, on every line, even inside longer words (`concat` becomes `condog`). The match is case sensitive, so `Cat` and `CAT` stay as they are. All lines are printed. Example input: ``` cat sat on a cat Concatenate the Cat ``` Example output: ``` dog sat on a dog Condogenate the Cat ``` (In `Concatenate` the small letters `cat` are replaced; the word `Cat` with a capital C is not.) Write a sed program. The input arrives on **standard input**. Delete every comment line and every blank line, and print the rest unchanged. A comment line is a line whose **first character** is `#`. A blank line has no characters at all. A line with only spaces is not blank, and ` # note` (spaces before the `#`) is not a comment, so both stay. Example input: ``` # config name=x port=80 #end ``` Example output: ``` name=x port=80 ``` Write a sed program (it runs with `-n`, so sed prints nothing by itself). The input arrives on **standard input**. Print only lines number 3, 4 and 5, in order. If the input has fewer lines, print only those that exist. If it has fewer than 3 lines, print nothing. Example input: ``` a b c d e f ``` Example output: ``` c d e ```