For example, I got from some command some lines
$ some-command
John
Bob
Lucy
Now I'd like to add chaining command, that modifies output.
$ some-command | other-command
Hi John Bye
Hi Bob Bye
Hi Lucy Bye
How to write other-command
? (I'm a novice in bash)
Best Answer
awk
sed
Examples
Using
awk
:Using
sed
: