Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Hey, diddle, diddle,
The cat and the fiddle,
The cow jumped over the moon;
The little dog laughed
To see such sport,
And the dish ran away with the spoon.


Make sure to keep this file in your /opt/nursery/ directory.

...

The -i signifies inline editing and also will have sed automatically creates a backup file. If you want to specify the suffix of the backup file you may add .suffix. For example to create the backup file with the extension .bak,

Code Block
languagebash
sed -i.bak 's/cow/reindeer/' notes.txt

Here is an often used example of escaping a the / (slash) reserved character within the single quote,

...