Sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline). in this post I will show you how easy we can replace text, marge two line into one and strip multiple spaces to one.
AWK is pattern scanning and processing language. I Will show how useful is awk on some examples, in this part we will use “:” as a separator, we will use awk for select uniqe pattern from file and we will show how to take last word from line.