Search Results

Search: Posts Made By: silas.john
5,145
Posted By silas.john
hey thanks.. but could you exlpain how this...
hey thanks..

but could you exlpain how this works?
5,145
Posted By silas.john
my code is files=`ls *.sql` for file in...
my code is

files=`ls *.sql`

for file in $files
do
echo "Compiling $file"


sqlplus ${SQL_USER}/${SQL_PASSWORD} @$ADMINSQL_PATH/$file
sho err
quit

echo "before done"...
5,145
Posted By silas.john
Showing errors when connecting to sqlplus in shell script
hi,

I am trying to automate the compilation of procedures stored in .sql files in Unix. Is there any way in which we can sho err if there errors are raised in the compilation?

I am using the...
3,522
Posted By silas.john
looping thru filenames in a directory
Hi,

i am very new to UNIX, i am trying to loop thru the files in a directory.

I got the filenames into a variable using

$files=`ls`

Here $files will contain

<filename1> <filename2>...
6,214
Posted By silas.john
Hi
Sorry for nto being very clear.

The script should:

Given a sql statement,

For Eg. select * from table1 t1, table2 t2 where .....

extract the table names from this sql statement. i. e we...
6,214
Posted By silas.john
Extracting Table names from a Select Stament
Hi,

I am working on a code to extract the table names out of a select statement. Is there anybody who has worked on something similar? May be you could provide me with the regular expression for...
1,332
Posted By silas.john
using sed
hi.. i am trying to find files containing a certain text. the following is my code



find . -exec grep -l "sometexttobefound" '{}' \; -print | uniq | sed 's/[\r\n]/,/g' `


the result of...
2,278
Posted By silas.john
Elimincating double result when using find and grep
Hi,

i am using the command



find . -exec grep -i "sometexttofoundinfiles" '{}' \; -print



The problem with this command is it prints the path of file i want twice. I did try the "-q"...
80,465
Posted By silas.john
Thanks a lot guys
Thanks a lot guys
80,465
Posted By silas.john
length of string
Hi

lets say i have a variable


output="string"

how can you find the length of the string contained in this variable? i guess "wc" cannot be used. its only for files.
16,744
Posted By silas.john
thanks Franklin..... :)
thanks Franklin..... :)
16,744
Posted By silas.john
HI...its working.. but i dont understand...
HI...its working..

but i dont understand what could be difference between

outputfile=`echo $1`

and

outputfile=$1

This is the only difference in our code.
16,744
Posted By silas.john
i guess ur code doesn work either..says ksh...
i guess ur code doesn work either..says ksh [programfilename] cannot execute
16,744
Posted By silas.john
Nope. this doesnt work. infact i had tried this...
Nope. this doesnt work. infact i had tried this one too
16,744
Posted By silas.john
Accepting filename as command line param and writing to it
Hi,

Is it possible to accept a filename as command line parameter and then write to that file using command redirection? i tried the below script.

outputfile=`echo $1`

echo "Writing to...
Showing results 1 to 15 of 15

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