Results 1 to 8 of 8

Thread: Difference between awk and sed scripting

  1. #1
    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!!!!!

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    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.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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 ;

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    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.

  6. #6
    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.

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

  8. #8
    RobertJack Guest

    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.

Similar Threads

  1. tool for KSH scripting
    By atul9806 in forum Software Development
    Replies: 6
    Last Post: 30-01-2011, 11:42 PM
  2. JSP Tags Scripting Variables
    By Level8 in forum Software Development
    Replies: 5
    Last Post: 15-02-2010, 06:54 PM
  3. Windows scripting language
    By Ashutosh_K in forum Software Development
    Replies: 3
    Last Post: 26-06-2009, 02:39 PM
  4. Want to learn Scripting Program!
    By YatinK in forum Education Career and Job Discussions
    Replies: 3
    Last Post: 10-02-2009, 06:23 PM
  5. C# AD Scripting
    By Bob in forum Active Directory
    Replies: 5
    Last Post: 31-03-2008, 09:29 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,637,314.45713 seconds with 17 queries