I am executing a shell script in which I run a sybase query which gives the O/P in a file .
The Output is :-
tablename
---------------------------
result of query executed my case will be an integer returned
(Number of rows effected ).
What i want to do is read result of query executed which in my case will be an integer returned into a variable in a shell script . It will be in 3rd line in the file in which i have redirected the Output of my Sybase Query .
How can i do that ?
Did you mean this?
EDIT
Do this.