Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are awk commands?

1224


Differentiate cmp command from diff command.

1237


What does grep v grep do?

1123


What are the commands in UNIX to list the files in a Directory?

1253


Describe the zip/unzip command using gzip.

1223


What does this command do,"$more readme.txt“?

1207


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1283


Write a command to kill the last background job?

1150


What is awk good for?

1190


What are reported commands?

1192


What does the “echo” command do?

1193


Which command will print your home directory on screen?

1148


Who invented grep?

1209


What does grep v do?

1098


what is the advaantage of each user having its own copy of the shell?

2614