Search Results

Search: Posts Made By: laknar
5,424
Posted By laknar
Thanks cjcox! Yes data is sorted and written...
Thanks cjcox!

Yes data is sorted and written into a CSV file. Finally i have built a korn shell script to generate this XML file.

This is how i'm doing. Please correct me if i'm wrong.

Loop...
5,424
Posted By laknar
Convert CSV file to nested XML file using UNIX/PERL?
we have a CSV which i need to convert to XML using Perl or Unix shell scripting.

I was able to build this XML in oracle database. However, SQL/XML query is running for long time. Hence, I'm...
3,698
Posted By laknar
textfile="/home/laknar/hostfile" while read...
textfile="/home/laknar/hostfile"

while read r
do
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no laknar@$r 'myscript.ksh &'

done < $textfile

is this correct?
3,698
Posted By laknar
Run a shell script on multiple servers at the same time?
We have 15 servers. Hostnames for these 15 servers are stored in a text files and loop through each server to connect to the remote server and run a command, but this loop process runs the command...
6,928
Posted By laknar
Thank you. I,m using Red Hat Enterprise...
Thank you.

I,m using Red Hat Enterprise Linux 6.5 and Korn shell.
6,928
Posted By laknar
While loop a file containing list of file names until the files are found?
Hi, I have a control file which will contain all filenames(300) files. Loop through all the file names in the control files and check the existence of this file in another directory(same server). I...
3,810
Posted By laknar
The script provided by bipinajith works well. But...
The script provided by bipinajith works well. But there could be many date above each request type in which i need to pick the date immediately before the Request type string. i have highlighted the...
2,382
Posted By laknar
Thank you for your time. i will check.
Thank you for your time. i will check.
2,382
Posted By laknar
AIX 6.1
AIX 6.1
2,382
Posted By laknar
Search string and print the above line and below lines?.
if the first string matches then print the previous line and current line and also print the following lines if the other string search matches.



Input
------

TranTime 2012 10 12
The...
5,359
Posted By laknar
Thank you it is working now. Could you please...
Thank you it is working now. Could you please explain that what this code is doing?.
1,381
Posted By laknar
Thank you so much it worked.
Thank you so much it worked.
5,359
Posted By laknar
Insert a new line between the XML tags?.
<TestLog>
<TriggerAPI>
<StartDate>Nov 16, 2012 6:34:02 AM com.satttest01.Response() </StartDate>
<RequestType>SUCCESS: Send :</RequestType>
<TranNumber>5210203</TranNumber>
...
1,381
Posted By laknar
I have updated the output. Im still working on...
I have updated the output. Im still working on the script. Any suggestion or hint will be appreciated.
1,381
Posted By laknar
Search a string and replace the same string above two lines?.
I need to search this "<CardinalMPI>" string and replace the same string above two lines of the string.

Nov 16, 2012 12:58:34 PM
INFO: Centinel LookUp ResponseXML : <CardinalMPI>...
3,810
Posted By laknar
Hi bipinajith, Thank you so much for your quick...
Hi bipinajith, Thank you so much for your quick response.

Can you please explain this script . Actually the date part could be any month not only "Nov" month. And for each search string i need to...
3,810
Posted By laknar
Search several string and convert into a single line for each search string using awk command AIX?.
I need to search the file using strings "Request Type" , " Request Method" , "Response Type" and by using result set find the xml tags and convert into a single line?. below are the scenarios.

Cat...
50,810
Posted By laknar
Replace special characters with Escape characters?
i need to replace the any special characters with escape characters like below.

test!=123-> test\!\=123

!@#$%^&*()-= to be replaced by


\!\@\#\$\%\^\&\*\(\)\-\=
5,094
Posted By laknar
curl script to download files from Secured HTTPS server?
curl -# -v -d "sendusername=myname&password=mypassword&wheretogo=download.php" -L -o test.zip http://www.ims-dm.com/cgi/securedownload.php?p=HIREFTPM\&prodtype=hire/test.zip
* About to connect() to...
Forum: Programming 03-13-2011
3,518
Posted By laknar
JDBC code to pass the SQL query as parameter and execute?
Below i have the sample code. i need to pass the entire query from file or as parameter and read the results and write into a output file.

here the number of columns are unknown. some times it...
12,044
Posted By laknar
can we have only connecting the database using...
can we have only connecting the database using java and execute the statements in perl and close the connection in Java?
12,044
Posted By laknar
Perl script to connect to database using JDBC driver?
How to connect to SQL Server database from perl script using JDBC driver?

---------- Post updated at 05:33 PM ---------- Previous update was at 05:07 PM ----------

i have sqljdbc.jar file. by...
9,988
Posted By laknar
awk -v a=0 -v b=8 '{print...
awk -v a=0 -v b=8 '{print substr($0,0,a)"."substr($0,b)}'

im trying like this replace a string based on position
"unix" instead of "." and i need to pass unix as parameter.
how to pass it?
...
10,796
Posted By laknar
#!/bin/sh cahr="$1" col1=$2 awk -v...
#!/bin/sh

cahr="$1"
col1=$2

awk -v a="$cahr" -v b=$col1 'BEGIN{OFS=FS=a}{$b="test"}{print}' filename

this is the script im executing.
10,796
Posted By laknar
cahr= "$1" + cahr= + '~' temp.sh:...
cahr= "$1"



+ cahr=
+ '~'
temp.sh: line 11: ~: command not found

when running this is the error im getting
Showing results 1 to 25 of 84

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