Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Difference between awk and sed scripting

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-03-2010
Member
 
Join Date: Dec 2009
Posts: 25
Difference between awk and sed scripting
  

Hello, I am the user of the Programming. I can not know about the awk and sed. I can also not know the differences between the awk and sed. So, I would like to know about the awk and sed. I also would like to know about the Differences between the awk and sed. Can anyone knows anything about the awk and sed ??? So, Please reply me!!!!!

Reply With Quote
  #2  
Old 27-03-2010
Member
 
Join Date: Apr 2008
Posts: 1,944
Re: Difference between awk and sed scripting

The awk and sed both can be the scripting languages. The Scripting Language or an extension language can be a programming language that can allows the control of 1 or more software an programs. The scripts can be different from the code of programs, as they can be an basically written in a distinct language and can be often at least changed or formed by an end-user.
Reply With Quote
  #3  
Old 27-03-2010
Member
 
Join Date: May 2008
Posts: 2,001
Re: Difference between awk and sed scripting

The awk whose name can comes from the 3 creators as they Alfred Aho, Peter Weinberger and Brian Kernighan. The awk can be a language processing lines that can be an available on most systems Unix and under Windows with Cygwin or Gawk. The awk can be an mainly used for handling text files for an operations research, replacement and complex transformations.
Reply With Quote
  #4  
Old 27-03-2010
Member
 
Join Date: Apr 2008
Posts: 1,993
Re: Difference between awk and sed scripting

The three points of the sed as follows :
  1. The sed, Unix command to convert the text;
  2. The Sed can be an ancient Egyptian god which probably gave its name to the Sed festival (heb-sed) Which was in theAncient EgyptThe jubilee festival traditionally celebrated from the thirtieth year of the reign of Pharaoh ;
  3. SED (Sozialistische Einheitspartei Deutschlands)Political party of the RDA ;
Reply With Quote
  #5  
Old 27-03-2010
Member
 
Join Date: May 2008
Posts: 2,283
Re: Difference between awk and sed scripting

The following can be some of the differences between the awk and sed as :
  1. The awk is also used as a "parse XML files or text files to generate SQL commands from the data extracted.
  2. The awk can also be used for operations of complex calculations and formatting raw data to statistical tables.
  3. The SED (Surface-conduction Electron-emitter Display), Flat screen technology;
  4. The SED (Self Extraction Directive File), A Self Extraction Directive file is necessary for the creation of a cabinet (. CAB) using Microsoft IExpress.
Reply With Quote
  #6  
Old 31-03-2010
Member
 
Join Date: Mar 2010
Posts: 1
Re: Difference between awk and sed scripting

to put simply awk is more power full than sed..in awku can use C style syntax..while in sed u cant.
Reply With Quote
  #7  
Old 31-03-2010
Member
 
Join Date: Dec 2009
Posts: 23
Re: Difference between awk and sed scripting

awk and sed both originated in UNIX.

At the highest level of description,

awk is a tokenizer.
sed is an automated editor (stream editor).


Examples:

awk '{ print $2 }' "51 52 53"
Prints "52" - extract the second token/field.

sed 's/52/XX/' "51 52 53"
Prints "51 XX 53" - substitutes (s) 52 with XX



In windows, I use biterscripting to do similar things. Corresponding examples.

wex "2" "51 52 53"
Prints "52" - extract the second token/field. wex = word extractor

sal "^52^" "XX" "51 52 53"
Prints "51 XX 53" - substitutes (s) 52 with XX. sal = string alterer






All commands are pretty powerful, especially combined with file loops. It's good to know these commands.
Reply With Quote
  #8  
Old 16-04-2010
RobertJack
 
Posts: n/a
Re: Difference between awk and sed scripting

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. but

SED is a simple but powerful computer program used to apply various pre-specified textual transformations to a sequential stream of text data.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Difference between awk and sed scripting"
Thread Thread Starter Forum Replies Last Post
tool for KSH scripting atul9806 Software Development 6 30-01-2011 10:42 PM
JSP Tags Scripting Variables Level8 Software Development 5 15-02-2010 05:54 PM
Windows scripting language Ashutosh_K Software Development 3 26-06-2009 02:39 PM
Want to learn Scripting Program! YatinK Education Career and Job Discussions 3 10-02-2009 05:23 PM
C# AD Scripting Bob Active Directory 5 31-03-2008 09:29 AM


All times are GMT +5.5. The time now is 10:39 PM.