Search Results

Search: Posts Made By: cskumar
11,429
Posted By cskumar
Thats cool rdrtx1. However anxious to see how OR...
Thats cool rdrtx1. However anxious to see how OR condition works as below are AND conditions.

In our example the below conditions are treated as AND conditions and file got processed....
11,429
Posted By cskumar
CONDITIONS="1=CT,2=US_10,3=CT_US_10" awk -v...
CONDITIONS="1=CT,2=US_10,3=CT_US_10"

awk -v CONDITION="${CONDITIONS}" -F, '
BEGIN {
c=split(CONDITION, cons, ",");
for (i=1; i<=c; i++) {
split(cons[i], cs, "=");
field=lookup(cs[1]);...
11,429
Posted By cskumar
Hi , I have simplified the solution and...
Hi ,

I have simplified the solution and sharing the final solution for others.

CONDITIONS="1=CT,2=US_10,3=CT_US_10"

awk -v CONDITION="${CONDITIONS}" -F, 'BEGIN { c=split(CONDITION, cons,...
11,429
Posted By cskumar
Hi, Before I post i store the condition in...
Hi,

Before I post i store the condition in a variable as like below(in 2 steps) and after that i merged in the same awk as per above snippet, however the problem statement remains the same where...
11,429
Posted By cskumar
Hi Moderators, My sincere apologies. ...
Hi Moderators,
My sincere apologies.
@nezabudka, Please see the below code

#Shell arguments
#-------------------
sh samplecollector.sh "20200212" "1=CT,2=US_10,3=CT_US_10"

#Inside the...
11,429
Posted By cskumar
Executing if dynamic conditions in awk
Hi All,

I got struck at the below point where i am unable to get the desired output after forming the dynamic conditions.Below is the design.
1. We are getting inputs from the shell arguments and...
2,697
Posted By cskumar
Need help on Plink
Hi All,

Iam a newbie to the plink and need your assistance. I have referred some posts but it doesn't helps me much.
I have two steps to do.

1. I have a config file which has a list of...
1,066
Posted By cskumar
Thanks
:) Thanks..It worked perfectly
1,066
Posted By cskumar
Help requried !!
Hi All,

Appreciate your help.

regards,
cskumar.
1,066
Posted By cskumar
Options tried
Hi,

Please find the below options which I have tried.

bsits001z$ ssh readonly@12.16.24.25 'exec bash' '/opt/tibco/logs/bw/EAI_Automation/test_automation.sh 447830748554'
Could not create...
1,066
Posted By cskumar
How to Execute shell in more than one server?
Hi ,

I got a shell in one physical server and want to execute it in different servers. I did tried using ssh but iam not successful. Can someone through somelight on the subject and with some...
2,041
Posted By cskumar
Got the solution!!!
Hi All,
A simple for loop helped me. Please see below

VAL="567|32 3434|3223 4545|343"
for i in $VAL
do
STARTPT=`echo $i|cut -d"|" -f1`
ENDPT=`echo $i|cut -d"|" -f2`
if [...
2,041
Posted By cskumar
No impact with the Done statement
Hi Akshay,

I don't see any issue in the extra done statement and getting the same error.

regards,
Kumar.

---------- Post updated 01-22-14 at 04:55 AM ---------- Previous update was 01-21-14...
2,041
Posted By cskumar
Inout,source code and Error
Hi Akshay,

Please use the below input to simulate the issue.

Input
------------------
2014 Jan 14 15:12:43:460 GMT +0 BW.Folder-Process_Archive Debug [BW-User] RequestMessage Job-329121...
2,041
Posted By cskumar
Not working in Shell
Hi Akshay,

Thanks for the suggestion.However it worked when I ran separately..But when I use the same piece of code in shell.It's not working and getting the same error as above
test.sh: syntax...
2,041
Posted By cskumar
Hi, Sorry for not being clear. I want to make a...
Hi, Sorry for not being clear. I want to make a dynamic loop for the values in "LINENO_JOBID_VAL" using space as delimiter and the separate the field 1(start point) and field 2 (end point) and do the...
2,041
Posted By cskumar
Unable to print block of data
Hi All,

Iam unable to print the below block and getting the error.Can anyone please help me in this.
Input Data
eaits001z$ echo "-------LINENO_JOBID_VAL--------${LINENO_JOBID_VAL}---"...
3,308
Posted By cskumar
Try this
awk -v ip1="$INPUT1" -v ip2="$INPUT2" '{gsub( /String1/, ip1);gsub( /String2/, ip2);print}' file

regards,
kumar
1,347
Posted By cskumar
Hi Thomas, Yes..You can use n number of...
Hi Thomas,
Yes..You can use n number of parameters,jus need to add only in the printf statements in terms of %s and $n.

regards,
kumar
1,347
Posted By cskumar
Hi thomas, Try this awk 'BEGIN...
Hi thomas,

Try this

awk 'BEGIN {FS="-";print "<html><table border size=1>"}{
printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n",$1,$2,$3,$4);
}
END {print "</table></html>"}'...
1,284
Posted By cskumar
Need help to execute the shell remotely
Hi All,

I have a typical problem where I have HP unix and want to connect to Solaris 5.10 box and run a shell. I tried with multiple forums but it does not help.

As per my analysis, there is no...
2,434
Posted By cskumar
Clarification
Hi, I have a big file file with many blocks and i want to print only the maximum block which is block-200.So i need to find the starting point and end point of the block-200 and print as per the...
2,434
Posted By cskumar
How to use awk within awk?
Hi All,

I have manipukated the start and end points in awk and want to use print the lines by using another awk.is this possible or any alternate way to print the below ?

$MAX_JOB value is...
1,781
Posted By cskumar
Help required!!
Dear All,

Iam unable to use the print statement in the final stage of my awk..Any help would be much appreciated.

Thanks and Regards,
cskumar
1,781
Posted By cskumar
Thanks..tried with , separator and worked fine.
I have almost made my script except the printing problem.Iam getting error in when i want to print between the start point and endpoint and more than start point.Can you please shed some light,,how...
Showing results 1 to 25 of 97

 
All times are GMT -4. The time now is 11:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy