|
| ||||||||||
| Tags: awk, language, programming language, scripting, sed |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Difference between awk and sed scripting
|
|
#2
| ||||
| ||||
| 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
| |||
| |||
| 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
| ||||
| ||||
| Re: Difference between awk and sed scripting
The three points of the sed as follows :
|
|
#5
| ||||
| ||||
| Re: Difference between awk and sed scripting
The following can be some of the differences between the awk and sed as :
|
|
#6
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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. |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |