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 / chets

SED (which stands for Stream EDitor) is a simple but
powerful computer program used to apply various
pre-specified textual transformations to a sequential stream
of text data.
It reads input files line by line, edits each line according
to rules specified in its simple language (the sed script),
and then outputs the line.

AWK is a complete pattern scanning and processing language,
it is most commonly used as a Unix command-line filter to
reformat the output of other commands.
For example, to print only the second and sixth fields of
the date command (the month and year) with a space
separating them, at the Unix prompt, you would enter:
date | awk ‘{print $2 ” ” $6}’

Is This Answer Correct ?    80 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the command ' $who | sort –logfile > newfile' do?

1245


Write a command to display a file’s contents in various formats?

1160


What's a command word?

1120


how to sort the content of the file based on numeric values

1736


How can you see the command line history?

1087


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1348


What is the behavioural difference between cmp and diff commands?

1220


What is command statement?

1112


Give the command for finding the current date.

1048


What is the use of sed command in unix?

1154


Why is grep called grep?

1239


How do I search for text in vi?

999


Explain mount and unmount command.

1154


What is grep and how do you use it?

1066


What is the difference between grep and grep?

1071