Search Results

Search: Posts Made By: vamsi.valiveti
1,847
Posted By vamsi.valiveti
Any Input on this really appreciated
Any Input on this really appreciated
1,847
Posted By vamsi.valiveti
I am using Notepad++ and How to get begin and...
I am using Notepad++ and How to get begin and start of a particular if block using this one if it is nested.
1,847
Posted By vamsi.valiveti
Multiple If conditions
I am analyzing one of the scripts written by another person.script is having multiple if conditions and everything are nested.The code is not formatted properly.Is there any way to identify in Unix...
2,055
Posted By vamsi.valiveti
I am using AIX
I am using AIX
2,055
Posted By vamsi.valiveti
I tried cat -v 2.txt but there is no '\r'
I tried cat -v 2.txt but there is no '\r'
2,055
Posted By vamsi.valiveti
Thanks for quick reply.I can get the solution...
Thanks for quick reply.I can get the solution using sed command but just want to know what is the problem with my command posted in question and why it is not working?
2,055
Posted By vamsi.valiveti
There is no change in output.I did not get...
There is no change in output.I did not get expected output
2,055
Posted By vamsi.valiveti
Change delimiter is not working using awk
I have file 2.txt and I want to change the delimiter form , to :
Not sure what is the problem with below command

cat 2.txt
1,a
2,b
3,d
awk 'BEGIN {FS=",";OFS=":";} {print $0}' 2.txt
...
3,849
Posted By vamsi.valiveti
I want to trigger EXIT_DB2=$? command after...
I want to trigger EXIT_DB2=$? command after completion of db2 export command but the problem here is EXIT_DB2=$? is triggering before completion of export process


db2 "export to...
3,849
Posted By vamsi.valiveti
Thanks for input.I faced one Issue here.Here I am...
Thanks for input.I faced one Issue here.Here I am exporting the data from tables to abc.ixf.Before export operation[I mean db2 select] is completed it is executing next command EXIT_DB2=$?.
I want...
3,849
Posted By vamsi.valiveti
Could you please help on How to do Save the...
Could you please help on How to do Save the individual exit codes into separate variables right after the respective command . . . return either to the caller.
3,849
Posted By vamsi.valiveti
Thanks for Input.Now dbscript.ksh is working fine...
Thanks for Input.Now dbscript.ksh is working fine but the problem is main.ksh is not working.Main.ksh should display dbscript.ksh got failed but it going to else part.Both script are mentioned as...
3,849
Posted By vamsi.valiveti
dbscript.ksh script details are mentioned as...
dbscript.ksh script details are mentioned as below.In this script also
$?is giving 0 and there is error in db2 select command



echo "Start Timestamp is : "$datevar1 > log.out;
db2 "export to...
3,849
Posted By vamsi.valiveti
UNIX with DB2 error status Issue
I have a shell script main.ksh We are calling dbscript.ksh from main.ksh
I am using select statement in dbscript.ksh but there is a problem with the select statement in dbscript.ksh but still echo...
1,065
Posted By vamsi.valiveti
Variable clarification
what is the significance of %%.ksh in processname and %.ksh in processname_1 variable?
Why is it returning same value?How is it working?


processname=Testabc
export...
1,603
Posted By vamsi.valiveti
I have one clarification on...
I have one clarification on link:-https://www.unix.com/shell-programming-and-scripting/273847-script-execution-sequence-manner.html


if sh -x script1.sh > script1.log
then job=$((job + 1))...
1,603
Posted By vamsi.valiveti
Restartability of scripts
I have main.ksh which will call various scripts inside and let us assume script1.ksh,script2.ksh,script3.ksh,script4.ksh.

Main.ksh

Some Unix commands1
script1.ksh
Some Unix commands2...
1,001
Posted By vamsi.valiveti
Nohup clarification
I have Main.sh script which will call 3 scripts as shown below.

nohup script1.sh &
nohup script2.sh &
nohup script3.sh &

Clarifification:
Is all 3 scripts will be triggered at a time or it...
2,395
Posted By vamsi.valiveti
what is the value of q here.we are not setting...
what is the value of q here.we are not setting any value here?
2,395
Posted By vamsi.valiveti
what you are doing in below code is not clear and...
what you are doing in below code is not clear and what is Q?

/end/{print Q;Q=A=""}/start/{A=1;next}



Please use CODE tags as required by forum rules!
2,395
Posted By vamsi.valiveti
UNIX shell scripting logic
This is my source file and required output is mentioned as below.
Any input on how to proceed.
start
name=vamsi
phone=123456789
mailid=abc@gmail.com
adress:-india
end
start
name=vamsi1...
2,437
Posted By vamsi.valiveti
UNIX extracting fields
I have one file A.txt which is comma separated and I want to extract first 4 field's in a file and also I want to add one more column in output
A.txt in output for all records. A.txt should not be...
847
Posted By vamsi.valiveti
Not working tried below thing. ...
Not working tried below thing.

Numbr_Parms=$#
a=`expr $Numbr_Parms - 2`
while [ $a -le $Numbr_Parms ]
do
if [ "$a" = "3" ]
then
PARAMSTRING="-param $3"
else
temp=\$$a
...
847
Posted By vamsi.valiveti
1)Thanks for reply This is my...
1)Thanks for reply

This is my script:script.sh
Numbr_Parms=$#
a=`expr $Numbr_Parms - 2`
while [ $a -le $Numbr_Parms ]
do
if [ "$a" = "3" ]
then
PARAMSTRING="-param $3"
else
...
847
Posted By vamsi.valiveti
New to shell script and any input will be...
New to shell script and any input will be appreciated. Not able to understand completly
Showing results 1 to 25 of 28

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