Hi guys, I was wandering if a Shell guru could give me some advice on tackling a problem.
I have used a mixture of grep, cut and awk to get data from a log file in the following format:
14/11/08 10:39: Checking currenly : Enabled
14/11/08 10:39: Records allocated : 221... (11 Replies)
Hi there,
I'm a total newbie and would like some help. I'd like to have a script to
- load the contents of the clipboard into a variable
- manipulate the variable by adding the characters /* to the beginning of every line and */ to the end of every line
- load the variable back into the... (3 Replies)
I am writing a shell script for some purpose. I have a variable of the form -- var1 = "policy=set policy"
Now I need to manipulate the variable var to get the string after index =. that is i should have "set polcy". Also I need to to this for many other variables where the value of "=" is not... (3 Replies)
Hi experts, I am not familiarised using nawk/awk to manipulate txt file. So I need ur help here. thanks.
txt1 - qc_m.log
TQC101
TQC102
TQC103
TQC104
txt2 - resultEqpt.log
TQC102,,LOGOFF
TQC103,,LOGOFF
TQC104,2012-10-03 07:42:57,LOGON
so TQC101 is not found in txt 2.
... (15 Replies)
Hi Guys,
I have a file that lists patches along with other information.
The patches are listed in two different formats.
One format lists the latest patch, date , installed patch
Latest Patch Date IN
148412-02 13-Sep-2012 -- X X SunOS 5.10: nss_dns patch
126206-10 ... (5 Replies)
My requirement is explained below:
list of files available in server 1 in path /home/xxx/src are:
XX_SRC_20130417.txt
XX_SRC_20130417.dat
$cat XX_SRC_20130417.txt
col1=ABC
col2=
col3=xyza sequence file name is maintained which is in the path /ab_app/xx/seq
$cd /ab_app/xx/seq$cat... (0 Replies)
Hi
i want to manipulate my data to convert row to column
name
600
Slno vlan
1 600
2 609
3 700
name
700
Slno vlan
1 600
2 609
3 700 (8 Replies)
Discussion started by: nith_anandan
8 Replies
LEARN ABOUT DEBIAN
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)