Search Results

Search: Posts Made By: cskumar
1,250
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...
766
Posted By cskumar
Thanks
:) Thanks..It worked perfectly
766
Posted By cskumar
Help requried !!
Hi All,

Appreciate your help.

regards,
cskumar.
766
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...
766
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...
1,288
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 [...
1,288
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...
1,288
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...
1,288
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...
1,288
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...
1,288
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}---"...
2,527
Posted By cskumar
Try this
awk -v ip1="$INPUT1" -v ip2="$INPUT2" '{gsub( /String1/, ip1);gsub( /String2/, ip2);print}' file

regards,
kumar
1,048
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,048
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>"}'...
919
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...
1,282
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...
1,282
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,020
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,020
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...
1,020
Posted By cskumar
Edited code tags
@Jotne, I have done with editing part and @RudiC, will give a try as well..

Thanks,
cskumar.

---------- Post updated at 01:08 AM ---------- Previous update was at 12:46 AM ----------
...
1,020
Posted By cskumar
The input file and my logic
Hi Jotne,Thanks for the info..will use code tags from here on.What iam trying to achieve is..I have the below blocks of data which i want to find the max Job-id and start printing only the blocks and...
1,020
Posted By cskumar
Problem with awk array when loading from shell variable
Hi, I have a problem with awk array when iam trying to use awk in solaris box as below..Iam unable to figure out the problem..
Need your help. is there any alternative to make it in arrays from...
858
Posted By cskumar
clarification
Hi joeyg,

Yes..You are right..the 9966993366 comes more than once.In real time the logs are huge and it comes with different jobids as well. probably in the below example I should give the last...
858
Posted By cskumar
Challenges in finding and copying the block
Hi, I have a below challenging task where iam unable to find the block and copy the same into a file.

I tried my luck,howver iam unable to reach the first and second step..Can anyone help me with...
5,615
Posted By cskumar
Try this
For Eg:
File
------
US|A
US|B
US|C
UK|1
UK|2

awk 'BEGIN { FS=OFS=SUBSEP="|"}{arr[$1]++ }END {for (i in arr) print i,arr[i]}' File

awk 'BEGIN { FS=OFS=SUBSEP="|"}{arr[$1,$2]++ }END {for...
Showing results 1 to 25 of 91

 

Featured Tech Videos

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