Search Results

Search: Posts Made By: yerra
28,570
Posted By yerra
If you know the pattern , then the following...
If you know the pattern , then the following would work.

sed -n '/Put pattern Here/{
=
p
}' Filename.
7,725
Posted By yerra
I was able to do it with the $#. Thanks for the...
I was able to do it with the $#. Thanks for the help..
7,725
Posted By yerra
I think I got it now. If i provide scriptname...
I think I got it now.
If i provide scriptname -s schema -u user -d database, $# evaluates to 6 based on no of options and its values. (-s schema) 2, (-u user) 2 and (d database ) 2.

So if it is...
7,725
Posted By yerra
I added this line at the end of the script (after...
I added this line at the end of the script (after getopts), maybe the approach is wrong..

if [ $# -eq "3" ]; then
"Option 1 specified -s -d -u"
elif [ $# -eq "2" ]; then
"Option 2 specified...
7,725
Posted By yerra
getopts
I have a script which fires a command based on certain parameters. I am posting the code below..

The options needs be given such that
-u option goes along with -d and -s, -f goes with -d and -t...
4,229
Posted By yerra
thanks again..
thanks again..
4,229
Posted By yerra
A slight problem
The above code works if there are no spaces in the tags. However in the sql file i m running, i would have

REM FILENAME: User_objects
REM FILETYPE: View
REM COMMENTS: This is a test platform.
...
4,229
Posted By yerra
Thanks for the assistance.
Thanks for the assistance.
4,229
Posted By yerra
I mean I have to one more script named yerra.awk ...
I mean I have to one more script named yerra.awk which I use in my main script to check the pattern which loads the SQLs into the databases.
Can I the code of yerra.awk in this main program, so...
4,229
Posted By yerra
The nawk and using the file to check the pattern...
The nawk and using the file to check the pattern is good . Can these both be incorporated in the same script rather than 2 scripts one the main script and other script for comparing the patterns ?
4,229
Posted By yerra
grep Question
I have a file which loads procedure/function into ORACLE.Top of the file contains 3 rows which is FILENAME, FILETYPE AND COMMENTS and then the function/procedure etc.

FILENAME:
FILETYPE:...
3,892
Posted By yerra
yes sorry for the vague question. I dont want...
yes sorry for the vague question.
I dont want the space in my variable o/p. However after I posted the thread, I was looking into sqlplus manual and there I found out what the problem was. SQLPLUS...
3,892
Posted By yerra
Setting Col size
I have a variable in a shell script which is more than 80 characters.
1) I log into SQL plus and populate a variable using 3 queries appended by ,' comma'.
ORAINFO=`sqlplus -s << !
/ as...
Showing results 1 to 13 of 13

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