Results 1 to 3 of 3

Thread: Difference between awk and sed scripting

  1. #1
    PerryCollins is offline Senior Member
    Join Date
    Dec 2009
    Posts
    380
    Rep Power
    3

    Default Difference between awk and sed scripting

    Hi everyone. I am new in programming word. I cannot know about the awk and sed. I can also not know the differences between the awk and sed. So, I want to know about the awk and sed and also want to know about the Differences between the awk and sed. Any suggestion would e highly appreciated. Thanks in advanced

  2. #2
    SmithJohnson is offline Senior Member
    Join Date
    Dec 2009
    Posts
    364
    Rep Power
    3

    Default

    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 execute SQL commands from the data extracted.

    2. The awk used for difficult calculations and formatting raw data to statistical tables.

    3. The SED, Flat screen technology;

    4. The SED, A Self Extraction Directive file is essential for the creation of a cabinet (. CAB) using Microsoft IExpress.

  3. #3
    Williamsjones is offline Senior Member
    Join Date
    Dec 2009
    Posts
    352
    Rep Power
    3

    Default

    awk and sed both invented in UNIX.

    At the highest level of description,

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


    Examples:

    Code:
    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. related 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 alerter

Similar Threads

  1. Variation among awk and sed scripting
    By Davismoore in forum Video Card
    Replies: 3
    Last Post: 03-29-2010, 03:05 PM
  2. Scripting Variables
    By LewisClark in forum Programming
    Replies: 2
    Last Post: 02-16-2010, 05:08 PM
  3. Practice Scripting In Frinika
    By shaun12 in forum Everything Else
    Replies: 0
    Last Post: 08-02-2008, 04:09 PM
  4. Basic Scripting Rules
    By jack01 in forum Everything Else
    Replies: 0
    Last Post: 07-01-2008, 01:59 PM
  5. Practice Scripting In Frinika
    By networkman in forum Applications
    Replies: 0
    Last Post: 05-17-2008, 02:58 PM

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
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48