Search Results

Search: Posts Made By: kmanivan82
3,399
Posted By kmanivan82
Thank you Scrutinizer. It worked. Similarly...
Thank you Scrutinizer. It worked.

Similarly I have another scenario. The last line of the record is as follows.


FROM XYZ.[dbo].[STG_PRQ_UVW] ]]><ReadStatementFromFile...
3,399
Posted By kmanivan82
Thank you for your reply rdxtr1. It still did not...
Thank you for your reply rdxtr1. It still did not work.

Here's the error.


-sh-4.2$ dlm="<SelectStatement modified='1' type='string'><![CDATA["
-sh: ![CDATA[": event not found
-sh-4.2$
3,399
Posted By kmanivan82
Yes Sir. Still not working. Here's the exec...
Yes Sir. Still not working. Here's the exec msg's.


-sh-4.2$ dlm="<SelectStatement modified='1' type='string'><\!\\[CDATA\\["
-sh-4.2$ head -1 T24CustAuthSignerRlshpToXfmLoad.sql.txt
<?xml...
3,399
Posted By kmanivan82
Shell script to split data with a delimiter having chars and special chars
Hi Team,

I have a file a1.txt with data as follows.
dfjakjf...asdfkasj</EnableQuotedIDs><SQL><SelectStatement modified='1' type='string'><![CDATA[ SELECT

The delimiter string: <SelectStatement...
1,735
Posted By kmanivan82
Create Tar ball
Hi Team,

Following unix command is throwing error. Can anyone please help me to fix the issue?


tar -cvf /aa/bb/cc/tarball1.tar /x/y/z1/abc.ksh /x/y/z2/pqr.txt /x/y/z3/lmn.tmp

Error message...
722
Posted By kmanivan82
Lengthy string comparison
Hi Team,

Here's the scenario.

Code:
x="APT_BUFFER_DISK_WRITE_INCREMENT|3\Number\1048576\2\Project\Control buffer flushing\When internal memory buffer fills up, controls how much data gets...
947
Posted By kmanivan82
But I need to pass the value during runtime since...
But I need to pass the value during runtime since it changes over a period of time.

Example:

Code:
str1=\\Parallel\\' (file://\\Parallel\\')
sed 's/${str1}/|/g' xyz_file.txt


It did not...
947
Posted By kmanivan82
Cut the data with a string that has \ in it
Hi Team,

Here's the record in a file.

abc\USER DEFINED\123\345\adf\aq1

Delimiter here is "\USER DEFINED\"

Expected output:
abc|123\345\adf\aq1

Find "\USER DEFINED\" and replace it...
794
Posted By kmanivan82
Unable to replace ^
Hi Team,

I have a file called aa.txt and here's the content

^aa^,^11^

We are unable to replace the "^" with '' using sed command.


sed 's/^//g' aa.txt
need the file as follows in AIX...
3,366
Posted By kmanivan82
Identify empty file with null record
Hi Team,

I have a file abc.dat which is a empty file. But it has null record in first line. I need to identify this unique file and handle it separately.


scenario 1:

abc/dw> wc abc.dat
1...
997
Posted By kmanivan82
When I try to execute it from script, the command...
When I try to execute it from script, the command works fine. But when I execute it directly from console, it is throwing the following error.


$ find /home/abcd00 -name "*.txt" -mtime +30 -exec...
997
Posted By kmanivan82
Find and delete
Hi Team,

The following command works fine in AIX 6.1.

find /home/abcd00 -name "*" -mtime +30 -print -exec rm -f {} \;


We are trying to implement a similar logic in Linux 2.6. But it is not...
1,457
Posted By kmanivan82
Thank you bartus11.
Thank you bartus11.
1,457
Posted By kmanivan82
Find and replace
Hi Team,

one silly issue. but its not working for me.

I need to find a pattern a file and replace it with the given value in another file.

Here's the code snippet.

Search_String=100...
2,295
Posted By kmanivan82
Thank you for your reply.
Thank you for your reply.
2,295
Posted By kmanivan82
Untar fail
Hi Team,

I have a file named as follows: aaa.tar.gz

Now I need to verify if the untar fails, then the script has to send a mail. In order to check this condition, I need a tar.gz file which is...
942
Posted By kmanivan82
got it. Thank you Corona688.
got it. Thank you Corona688.
942
Posted By kmanivan82
Difference in executing the script
Hi Team,

a silly question.

Let's say i have a script called xyz.ksh

what is the difference in executing the script as follows?
./xyz.ksh
ksh xyz.ksh

Thanks
6,149
Posted By kmanivan82
Thank you RudiC and mjf. The performance...
Thank you RudiC and mjf. The performance statistics is as follows.

using while loop
**** Script started - 2015-02-07 02:18:52 ****
**** Script ended at 2015-02-07 02:19:45 ****
Duration: 53...
6,149
Posted By kmanivan82
Thank you RudiC for your reply. There is a...
Thank you RudiC for your reply.

There is a small change in the given requirement. Actually the file names will not have .tmp in the "file_list.txt". While deleting I need to append the filename...
6,149
Posted By kmanivan82
Delete files listed in text file
Hi Team,

Here's the scenario,

I have a text file called "file_list.txt". Its content is as follows.
111.tmp
112.tmp
113.tmp
114.tmp

These files will present in "workdir" directory. It...
3,316
Posted By kmanivan82
Hi RavinderSingh13, Need a modification in...
Hi RavinderSingh13,

Need a modification in the output.

I have parameterized the code that you have given as follows.

GetDate=$1
echo $GetDate | awk -vs1="01" -vs2="03" -vs3="12"...
3,316
Posted By kmanivan82
Thank you All. The code does not work in our...
Thank you All.

The code does not work in our system. We are using AIX 6.1


date -d '20141220 1 day ago' '+%Y%m%d'



Right now, I am using the code given by RavinderSingh13. Yet to try...
3,316
Posted By kmanivan82
Calculate given date - 1 day
Hi Team,

We have a requirement as follows.

If a date 20141220 as parameter to the script, then the script has to return the output as 20141219.
i.e given date - 1.

The requirement is...
4,219
Posted By kmanivan82
Hi derekludwig, Thank you for your reply. ...
Hi derekludwig,

Thank you for your reply.

I am getting syntax err.

syntax error at GMT2MST.pl line 7, near "my "

Can you help me to fix the issue?

Thanks
Showing results 1 to 25 of 84

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