Member-only story
Linux — sed & awk command and crontab
The purpose of this hands-on training is to teach you how to use sed & awk commands and crontab.
Learning Outcomes
At the end of the this hands-on training, you will be able to;
- use sed & awk command and crontab.
Outline
- Part 1 — sed command
- Part 2 — awk command
- Part 3 — crontab
Part 1 — sed command
- Sed is a stream editor. A stream editor is used to perform a lot of function on a file like searching, find and replace, insertion or deletion.
- Create a folder and name it
sed-awk-command.
mkdir sed-awk-command && cd sed-awk-command- Create a file named
sed.txt.
Linux is an OS. Linux is life. Linux is a concept.
I like linux. You like linux. Everyone likes linux.
Linux is free. Linux is good. Linux is hope.Replacing or substituting string
The following sed command replaces the word “linux” with “ubuntu” in the file.
sed 's/linux/ubuntu/' sed.txtsspecifies the substitution operation.- The
/are delimiters.








