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
What is the behavioural difference between cmp and diff commands?
Who command in unix?
Explain command to display different lines that are found when compare two files?
Differentiate cat command from more command.
What is the use of tee command?
What is awk used for?
What does touch command do in unix?
What is the significance of the 'tee' command?
What does the md command do?
What do chmod command do?
What is in grep command?
What are the dos commands?
Name the various commands that are used for the user information in unix.
What is the difference between cat and more command?
What does the metacharacter mean?