Two syntax errors. Within { } the syntax is different
Parts of the main (or the whole main block) can be without { } then the syntax for an implicit if is
Since some time I add brackets to the implicit if, to emphasize the similarity with an explicit if:
The implicit if can have an implicit action that is {print}. The explicit if must have an explicit action.
Last edited by MadeInGermany; 10-08-2013 at 07:43 PM..
This User Gave Thanks to MadeInGermany For This Post:
Two syntax errors. Within { } the syntax is different
Parts of the main (or the whole main block) can be without { } then the syntax for an implicit if is
Since some time I add brackets to the implicit if, to emphasize the similarity with an explicit if:
The implicit if can have an implicit action that is {print}. The explicit if must have an explicit action.
Thanks for your such detail explanation, you are great.
More question, what i want to do is:
I have one file called filelist, this is static file. this file is master file for checking source send file status. file like below:
group, filename
abc,file1
abc,file2
abc,file3
cde,file4
cde,file4
def,file5
everyday, I need to check if the all file come or not group by group. which means for group abc, if I found file1, file2, file3,file4 then send group message to downstream (group file completed). if any file missing, I need to send warning. there are about 50 group 150 files. I am DB developer, not that strong in unix. I cannot figure out how to loop file based on group count, so, my idea is:
use awk find the file not existing in dir, then, uniq the group for both file list and the above scritp return, then do some sort of minus using filelist - result return from script, this I can get the file completed group list.
Do you have any suggestion about how to work for this.
"SQLPLUS -S " is not working in one environment where same code is working in another
getting below error
===================================
SQL*Plus: Release 11.2.0.3.0 Production
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus... (1 Reply)
Hello to all,
The Regex below is supposed to match all strings except RR45. I've tested in regex101.com and it works, butwhen I try to use it with the perl command below I get the error shown.
Regex=(?<=^|RR45)(?!RR45).+?(?=RR45|$)
How to fix this? I'm using Cygwin.
$ echo... (9 Replies)
Hi All,
I have one requirement in my automation .
I need to pass values like 1 , 2 , 3 to MY_IMAGE in command line in linux .
I had defines activities for all these inputs in other make file.
The code similar to below i wrote for my requirement. Issue was whenever i passes values... (1 Reply)
Hi all,
I had a large application created using Visual C++. I ported that application using WINE to the Linux platform (ofcourse x86). Now I have to port the same application to AIX which runs over IBM mainframe. I dont have mainframe available but it is required for me to port my application to... (1 Reply)
Hi All,
Following is the part of my script.It does contain many for loops and is not elegant. Please feel free to suggest any changes to make this elegant.
Thanks!
nua7
for i in `ls $CATALINA_HOME/shared/lib/*.jar`;
do
LOCALCLASSPATH="$LOCALCLASSPATH:$i"
done
for i in... (3 Replies)
Up until two days ago they were working junt fine, then stoped working with out me doing anything. Yesterday they started working again...and then stoped working, at about the same time of day that they stoped working the day before.
service crond restart
did nothing. All SSH signs point to... (0 Replies)
hello everyone,
I had a HP-UX, i am trying to find the make version ,but it is displaying the error i.e
make -v
Make: Unknown flag argument v. Stop.
make -version
Make: Unknown flag argument v. Stop.
make --version
Make: Unknown flag argument -. Stop.
make -V
Make: Unknown flag... (2 Replies)
Hi All,
I need a help from the techie guys in this group.Actually, i need to make a code which can make wallpaper and ringtone for a mobile phone using any method.
I know C,C++ and perl langauges but doesnot having much knowledge of JAVA. So can anybody tell me that whether i can... (0 Replies)
Dear reader,
This is a query related to multiuser environment. I have a piece of code written in C. Now I want to make this code as reentrant and execute on several trminals at the same time, such that there exists only one copy of code in the memory.
Please tell me..
1. What are the... (2 Replies)