Search Results

Search: Posts Made By: scorp_rahul23
1,600
Posted By scorp_rahul23
How to break record
I have this script lines

#!/usr/bin/bash
my_path=`dirname $0`
I_table=$1
echo $I_table


in I_table entry going is ccc_con,cc_gui

I want to break content of I_table in S_Table and...
1,598
Posted By scorp_rahul23
Can any one explain what this code will do
ccc_con,CCC_CON,0

Above is the input for this code


#!/usr/bin/bash
my_path=`dirname $0`
T_table=$1
S_table=$2
P_table=$3
#Star new code
while read...
3,408
Posted By scorp_rahul23
Capturing Data between first quote and next quote
I have input file like


RDBMS FALIURE UTY8703 'USER_WORK.TEST' .HIghest return code '12'


I want to parse data which comed between first quote till next quote

USER_WORK.TEST

...
4,051
Posted By scorp_rahul23
No error message nthng, just it is displaying...
No error message nthng, just it is displaying password on the screen
4,051
Posted By scorp_rahul23
Its not working echo "ENTER PASSWORD: \c"...
Its not working


echo "ENTER PASSWORD: \c"
stty -echo;
read pwd;
stty echo;
4,051
Posted By scorp_rahul23
How to hide password from getting displayed on screen
I am writting script like

echo "ENTER USERNAME: \c "
read uName
echo "ENTER PASSWORD: \c"
read pwd


In this it is shwng password on screen, I want to hide it, how can I do that
2,231
Posted By scorp_rahul23
How to use refrence values inside sed command
I am using script

S_db=`grep SRC_DB= ${login_txt} | cut -d= -f2`
T_db=`grep TGT_DB= ${login_txt} | cut -d= -f2`
today=`date +%Y%m%d`
sed 's/USER_WORK/RAR_WORK_D1/g' <...
1,262
Posted By scorp_rahul23
Problem with changing value in file
I am writting this statement

crt=`sed -n '2,$p' ${my_path}/files/${T_target}_${today}_DDL.txt | tr -d '\n' '' `


This thing is wrkng fine,.nw I want to change a particular string in my file...
2,127
Posted By scorp_rahul23
crt=`sed -n '2,$p' ...
crt=`sed -n '2,$p' /home/nbk3eyb/files/ccc_conduit_gci_20080922_DDL.txt | sed 's/create table [^ ]*/create table user_work/'`

but its not working
2,127
Posted By scorp_rahul23
How to replace string
I have input file line as


create table user_area

But in abve line anything can come after create table , so I have to take from create table(space) to (next space)

I want to change it...
14,419
Posted By scorp_rahul23
when I am giving like this STATUS= cat temp1...
when I am giving like this

STATUS= cat temp1 | grep "Highest return code encountered" | cut -d " " -f13,14,15,16,17,18
echo "FINISHED FEXP: ${TABLE2EXP}\c"
echo "$STATUS"









i am...
14,419
Posted By scorp_rahul23
Output of both the echo statement in one line
I have script like


echo -n FINISHED FEXP: ${TABLE2EXP}
echo $STATUS


I want the output of both the echo statement in one line


How can i do this
1,536
Posted By scorp_rahul23
Breaking line
My input file is like

USER_WORK.ABC
USER_WORK.DEF


I want output file like

ABC
DEF
39,604
Posted By scorp_rahul23
remove quotes
I have input like

'ABC'

How to remove quotes
OUTPUT
==========
ABC
2,777
Posted By scorp_rahul23
ohhk, Thanks
ohhk, Thanks
2,777
Posted By scorp_rahul23
my_path=`dirname $0` while read TABLE2EXP do ...
my_path=`dirname $0`
while read TABLE2EXP
do
echo "EXPORTING TABLE: ${TABLE2EXP}"
${my_path}/FEXP.sh ${TABLE2EXP} >> ${my_path}/DSW_Archive_`date +%Y%m%d`.log
echo "FINISHED FEXP: ${TABLE2EXP}"...
2,777
Posted By scorp_rahul23
If I have file and I m performing GREP on it ...
If I have file and I m performing GREP on it

ARC_CNT=`cat ${my_path}/DSW_Archive_`date +%Y%m%d`.log | grep "UTY8713 RDBMS failure" | wc -l`

its shwng

cat: cannot open ./DSW_Archive_...
2,777
Posted By scorp_rahul23
Thanks
Thanks
2,777
Posted By scorp_rahul23
Parsing File
I have input file like


Count(*) TableName
----------- ------------------------------
1 ccc_customers
Count (*)TableName
----------- ------------------------------
1 ccc_conduit_gci

...
Showing results 1 to 19 of 19

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