answersLogoWhite

0


Best Answer

They both are frequently used programs in UNIX, but they do different things. Read their manuals if you want to use them.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between sed and awk?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between sed grep and awk?

The major difference between SED GREP and AWK is that SED allows you to find a pattern address. AWK only allows you to find a numeric address.


What is the difference between grep and sed?

The major difference between SED GREP and AWK is that SED allows you to find a pattern address. AWK only allows you to find a numeric address.


What is an example shell script to print a certain range of lines of a file?

This can be done any number of ways in the Unix operating system. Using 'sed', you can use the address range to limit what you are printing, such as: sed -e '1,5p' < filename To just list lines 1 - 5 of a file, or the AWK or Perl scripting languages to do the same type of thing.


What is a limitation on freedom of speech that you may be sued in court for?

cash money trillionares we rich we never going to stop we got money nigars awk awk awk


In what year did American Water Works - AWK - have its IPO?

American Water Works (AWK)had its IPO in 2008.


Where can you find information about the awk-web programming language?

Awk isn't really a web programming language. However, that's not to say you can't use it for that. The following link will take you to a good extensive reference for Awk programming: http://www.dc.turkuamk.fi/docs/gnu/awk/gawk_toc.html.


What is the difference between the grep and sed commands in Linux?

The term "grep" stands for "global regular expression parser". It's used to search a character stream for items matching a specific pattern. The term "sed" stands for "stream editor". It's also capable of searching a character stream for items matching a pattern, but whereas grep just finds them, sed then actually does something to them to change them.


What does sed mean in English?

Sed is "thirst" Tener sed means "To be thirsty". For example: Tengo sed is 'I'm thirsty'.


How do you write a awk script program in unix?

That is a difficult question to answer - the question is rather vague on what you intend to do. An awk script is a file containing awk commands that operate on 1 or more data files, based on selectors and actions resulting from that selector. It all depends on what you want to do with the data. The program itself is just a text file that can be created by any editor and then interpreted with the awk command.


Why awk -f command is used?

The awk programming/scripting language is used to pattern match text and then do something with the result. Using the -f option indicates that the awk program/script has been stored in an external file instead of being specified inline with the command.


What are Nawk scripts?

Nawk is an Awk replacement on *nix operating systems. It is very good at sorting data in columns and search functions. A classic awk command would be: "$awk '/Home/ {print $3}' file > home.txt" this consists of calling the awk interpretor to open the file "file", telling it to search for the word "Home" and when it finds that, print the 3rd column from that line out to a file named home.txt. Awk automatically uses tab (\t) as the field separator ($FS) and you can change this if the input file uses something else besides the tab, e.g. : or ; or & and so on. there are a lot of awk tutorials on the web and most are pretty good.


Does James harden have a moh awk?

i think so