Thanks all..
I am having one more doubt..
Can I execute the awk file in a loop from ksh file.
For example
where as filelist contains the list of input files..
I have tried this by giving list of 3 files in the filelist..But,It is not working. Please help
It is executing only the first file in the list
I can't excute any commands in /usr/bin
when I try to excute commands in /usr/bin
the error message is displayed " No Such device or
address"
Can you Help?
Thanks in Advance (6 Replies)
Hello
i have script that show me stuff , i need to excute this script every N seconds , is there any way to do it with one liner ? ( mybe perl )
thanks (7 Replies)
Hi,
I have a file which don't have execute permission, but still it can be executed by "sh" like as below.
------------------------------------------------------------------
-rw-r----- 1 root other 30 May 8 15:43 test.sh
(svpkg1-nd:root) - ./test.sh
./test.sh: cannot execute... (4 Replies)
I have a text file with only the command:
MyTextFile:
ls -l
in it..
So in my sript im trying..
sh MyTextFile.txt >> MyTextFile.txt
Just to overwrite and replace the command with its output.
sh MyTextFile.txt 2>1 MyTextFile.txt
isnt redirecting either.. :(
Im getting the... (3 Replies)
hi all,
I am new to unix and unix scipting. i need a script to logging into servers and to excute some commands in each server.
for eg :
I tried with below script ,but cant get the desired o/p. please help with this
for i in `cat serverlist`
do
echo $i
ssh $i uname -a ;
cat... (4 Replies)
Hi All,
I have the below code where Iam connecting from xzur111pap server to xzur0211pap server thru ssh to execute some commands.
ssh xzur0211pap
spaceleft=`df -k /home |tail -1 | awk '{print $5}'`
spaceleft=${spaceleft%\%}
if ]; then
echo "ALERT : HUFS(/home $spaceleft)"
exit 0... (3 Replies)
Hi,
I am a new user of Mac OSX 10.7 (Lion). I am trying to compile a program and followed steps as:
1: qmake program_name.pro
Not to mention I have installed qt and program compile perfectly without error and create a Makefile.
2: make
Again everything worked fine and I got an executable... (1 Reply)
hi Guys, i'm new to linux
i have some problem after reboot it showing like this error ..
end -request: i/o error / dev hdb, sector 2566830
cant excute : /etc/init.d/rc
No more process /etc in this run level
any one know .. plz reply soon ... coz i 'm working as data center (2 Replies)
Good Evening all,
After spending the last week or so reading many posts I decided to register and join in. This is my first post on the forum so please forgive me as im new to this, Im after some help in throwing together a quick basic script without using expect to change the password on several... (4 Replies)
Discussion started by: mutley2202
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)