Hi folks,
I would like to know the difference between shell programming and awk programming. Actually i have developed a few applications in both but i could not find a better difference other than the syntax differences.
For example, the awk programming syntax is complicated. It has "{" and... (4 Replies)
Hello Friends
I want to process only those lines which are not started with a * or "
example File name:
GRX
"RxDataTime, NSysClkEn, Frame","Size","Sleep","TNum","TSet","TWait"
*Init Start
*Comment Generated from: C:\Documents and Settings
000000,0000,1,0,0,0,0,0,0... (8 Replies)
Hello
i need help with following problem:
i need to update a file containing records in following format:
student1
classa
student2
classb
student3
student4
classc
i need to associate EACH student with a class in my output file ... so for students 3 and 4, i need to create a... (12 Replies)
Hi
I have a multi -line file which is sorted by the 1-st colomn in the following format:
400 0000 0001 1000 1010 0111 0000 1000 0000
402 1101 0000 1100 1010 0111 1000 1000 0000
403 1001 0000 1100 1010 0111 0000 1000 0000
495 1000 0000 1100 ... (4 Replies)
Good morning!
guys, help me please
I have a file like this one:
diamond 5 7.8
77777765 1 7
1234567890 9 3.5
diamond 2 1
1234567890 3 6.8
77777765 0 4
os Solaris
it's only example, columns may be more, but in my case only 3 columns
so, my question
how I can group according to... (1 Reply)
Good morning to everyone!
guys, help me please
I have a file like this one:
diamond 5 7.8
77777765 1 7
1234567890 9 3.5
diamond 2 1
1234567890 3 6.8
77777765 0 4
os Solaris
it's only example, columns may be more, but in my case only 3 columns
so, my question
how I can group... (1 Reply)
I have the list of numbers in a file
105.1
102.0
100.5
100
98
97.5
95
...
I want to get how many times I have numbers greater than a particular limit, say 100 in the list. How can I do that with awk command? (5 Replies)
Need assistance using awk .
Need assistance in awk programming.
Any idea of getting the marked data into a file.
</tr> <tr> <td class='labelOptional_ind'> cdr.00012325.0000000000000000.20130612.050005.WANP4722_csv </td> <td width='15%' class='labelOptional'> <div align='center'>... (8 Replies)
Hi All,
I am new to AWK programming. I have the following for loop in my awk program.
cat printhtml.awk:
BEGIN
-------- <some code here>
END{
----------<some code here>
for(N=0; N<H; N++)
{
for(M=5; M<D; M++) print "\t" D "";
}
-----
}
... (2 Replies)
Discussion started by: ctrld
2 Replies
LEARN ABOUT LINUX
igawk
IGAWK(1) Utility Commands IGAWK(1)NAME
igawk - gawk with include files
SYNOPSIS
igawk [ all gawk options ] -f program-file [ -- ] file ...
igawk [ all gawk options ] [ -- ] program-text file ...
DESCRIPTION
Igawk is a simple shell script that adds the ability to have ``include files'' to gawk(1).
AWK programs for igawk are the same as for gawk, except that, in addition, you may have lines like
@include getopt.awk
in your program to include the file getopt.awk from either the current directory or one of the other directories in the search path.
OPTIONS
See gawk(1) for a full description of the AWK language and the options that gawk supports.
EXAMPLES
cat << EOF > test.awk
@include getopt.awk
BEGIN {
while (getopt(ARGC, ARGV, "am:q") != -1)
...
}
EOF
igawk -f test.awk
SEE ALSO gawk(1)
Effective AWK Programming, Edition 1.0, published by the Free Software Foundation, 1995.
AUTHOR
Arnold Robbins (arnold@skeeve.com).
Free Software Foundation Nov 3 1999 IGAWK(1)