You have some syntax errors with your script. You don't need to use the \ when you are using single-quotes around the awk script. It probably should look like:
Except that you never define a variable named "nas", so this you will need to change.
Hi all,
I've a structure let's say
typdef struct a { int a; int b; char* string} b;
I need to make the function smth like readdir(), returning everytime it's called pointer to the next structure. Let's say functions would read the next file in the directory and all the permitions put it in... (2 Replies)
What is a good and easy to set up program on Unix FreeBSD for playing streaming MP3s. Where can I get it and how do I install it? This is FreeBSD 4.3.
Thanx. (2 Replies)
Hi All,
I am trying to read data from two files and then compare them and only print the records on the screen that have a same ID.i.e TAGNO =CUSTOMERNO
For Eg
My Input Files are (a) Transaction (b) Customer detail
The data in file a is like:
TagNo Date Time Station... (0 Replies)
:D i have searched through several sites on google for a match up for sed that would go indepth into the workings of this interactive edditor.. I use it every day and it is the edditor of my choice so i know a few tricks but would very much like to get into the more complex uses of sed.. all the... (2 Replies)
SunOS 5.8
this command launchs my server:
./some_java_application > stdout.log 2>&1 &
tha stdout.log file was deleted
Q1) Is there a way to recover or redirect the writing stream without restart tha application?
Q2) If not Q1, is there a way to launch the application so I can see the... (3 Replies)
Hello, I have Ubuntu 64 bit 9.04 install dual boot
I can't see stream videos through Opera
I couldnt see it in Firefox did this:
"sudo apt-get install ubuntu-restricted-extras flashplugin-nonfree"
Now I can see it in firefox but not in Opera
Should not care and just use just Firefox.
thanks (0 Replies)
Hello Everyone,
The situation is:
$ alias rm="sh abc.sh"
#abc.sh:
read input
echo "The input was: " $input
$ rm xyz.txt
should return
"The input was: xyz.txt"
Here, I want the alias "rm" to execute the file "abc.sh", where "abc.sh" should take "xyz.txt"... (1 Reply)
Hi
I used this command:
mplayer http://host/axis-cgi/mjpg/video.cgi -user root -passwd root \
-cache 1024 -fps 25.0 -nosound -vc ffh264 \
-demuxer 3 -dumpstream -dumpfile output.avi It's ok but...
Video Playing is very fast! Why? Is it a synch problem?
What parameter I have to use for... (1 Reply)
Here is what I have.
1 main program and it calls several child programs. Each child has its own log file. I want all child logs also to be appended to the main.log so that I have a single log file. I also need individual child logfiles in tact for debug purposes. Need to be able to tail one log... (4 Replies)
here's my statement:
sed -i '4s/$/ #/' sed_test_file.txt
I want to edit the n'th line (the '4' is for the example) of the file (but you can't just put the n instead of the 4)
sed_test_file is a simple text file containig text only
I tried to use $urlCounter instead of 4, as urlCounter... (4 Replies)
Discussion started by: ganraveh
4 Replies
LEARN ABOUT CENTOS
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)