Search Results

Search: Posts Made By: Jtrinh
4,661
Posted By Jtrinh
How to reverse engineer directories
Hi,

I need to reverse engineer certain directories so I can create the exact directory structure in another machine. How do I go about doing that?

Thanks in advance for your help.

JTrinh
51,219
Posted By Jtrinh
How to pass Shell variables to sqlplus use them as parameters
Hi,

I am trying to pass some of the variables in my shell scripts to the sqlplus call and use them as parameters.

For example, I would like to replace the 'SAS', and '20050612' with $var1 and...
58,746
Posted By Jtrinh
Thanks VIGSGB for responding, I tried to run this...
Thanks VIGSGB for responding, I tried to run this (I had to make some changes to make it run):

----------------------------------
part_info=`sqlplus sars2d/oracle@kfdmlc <<_EOF_
set...
58,746
Posted By Jtrinh
How to pass a oracle variable back to the shell script
Hi,

I am calling an oracle function that returns a number (either 0 or 2), how do I pass that pass to the wrapping shell script as I would like to do other things based on the value returned by...
12,349
Posted By Jtrinh
Thanks to you both, Both BEGIN and begin...
Thanks to you both,

Both BEGIN and begin seem to work the same. But which one should I use?

'Header' does segregate the records. So the rule is every time the string 'Header' is encountered,...
12,349
Posted By Jtrinh
Thanks vgersh99, It works well, however, I...
Thanks vgersh99,

It works well, however, I left out an important piece of information, that is I don't know for sure how many sets of records there are in the file. How would I handle that?
...
12,349
Posted By Jtrinh
Loop through file and write out lines to file(s)
Hi,

I am new to ksh scripting so your help will be much appreciated.

I have a file called file.txt which looks like this

Header 20050702 20050703
ABC
DEF
Header 20050703 20050704
123...
Showing results 1 to 7 of 7

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