What is the difference between AWK and SED commands? Plz
give example and explain...
Answer Posted / sreenivas
sed reads from standard input and/or file(s), applies specified
changes which are typically mostly editing changes, and
writes to
standard output. It is relatively similar to the text editor
ed(1),
except in the case of sed it doesn't alter its input
file(s)*, but
writes the data to standard output, and sed also has some
commands
which ed does not have (and in most cases wouldn't be
suitable for or
make sense for ed). sed's commands are mostly limited to editing
type commands.
awk is sort of like an interpreted somewhat C-like language with
added built-in functionality for dealing with strings and
patterns.
Though not a fully general purpose programming language, awk
is much
closer to such than sed.
Is This Answer Correct ? | 22 Yes | 9 No |
Post New Answer View All Answers
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What does pipe () return?
Describe the usage and functionality of the command rm –r * in unix?
Which unix command to make a new directory?
What is command statement?
Explain how to use grep command to list find the records of a file containing 10 different strings?
How do I search for text in vi?
Enlist some filename manipulation commands in unix.
Explain the steps that a shell follows while processing a command.
What does the metacharacter mean?
Which command should you use to find the remaining disk space in unix server?
Is it inbetween or in between?
What do chmod, chown, chgrp commands do?
Explain command to view process running?
why metadb requires a seperate slice to create Solaris volume manager