Search Results

Search: Posts Made By: vitesse
10,124
Posted By vitesse
find another way to extract the number,(count the...
find another way to extract the number,(count the exported file).
I think the problems here is that we are using db2 command,this is a IBM db2 cli command.when i change the "db2" to a "echo"...
10,124
Posted By vitesse
when I put them one by one,first line will print...
when I put them one by one,first line will print "238"
second line print nothing
third line print Value of "NUMBER :"
but when I put them all together in a t1.sh,when i run this t1.sh,I get only...
10,124
Posted By vitesse
only "Value of NUMBER :"
only "Value of NUMBER :"
10,124
Posted By vitesse
yes,both print nothing.
yes,both print nothing.
10,124
Posted By vitesse
ALL seperate code your mentioned print the...
ALL seperate code your mentioned print the correct results.
the code:
db2 "export to ACTIONS.dat of del select * from ACTIONS" |grep "Number of rows exported" | awk '{print $5}'
gets following...
10,124
Posted By vitesse
the space is deleted,but I am still can not...
the space is deleted,but I am still can not assign the number to the variable x.
echo $x gives nothing. what can i do next?
10,124
Posted By vitesse
I think the problems is that there is a space...
I think the problems is that there is a space before number,how can I get rid of this space.thanks!
10,124
Posted By vitesse
hi,thanks for reply,still can not make it...
hi,thanks for reply,still can not make it work,here is several tests i make,hope it give you some idea of problems.
>x=123
>echo $x
123
>x=`db2 "export to ACTIONS.dat of del select * from...
10,124
Posted By vitesse
first command is db2 "export to ACTIONS.dat of...
first command is
db2 "export to ACTIONS.dat of del select * from ACTIONS"
it will created following message:
SQL3104N The Export utility is beginning to export data to file
"ACTIONS.dat".
...
10,124
Posted By vitesse
hi,That works great,here is another issue. The...
hi,That works great,here is another issue.
The String been extract is comes from another shell command,like 'db2 "export blala"',
how can i combine your solution with first shell command.
thanks.
10,124
Posted By vitesse
How to extract variable number from a String
hi,I am new to shell script,I have String,like this:
Number of rows exported: 5321
the numbe at end could changing,how can I extract this number and assign it to a variable,then use it later in...
Showing results 1 to 11 of 11

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