Search Results

Search: Posts Made By: exm
2,555
Posted By exm
Thanks for the suggestions. Will give a try and...
Thanks for the suggestions. Will give a try and let you know the results!
2,555
Posted By exm
Thanks all for the help. The code below is doing...
Thanks all for the help. The code below is doing what I am trying to accomplish. I figure to share this in case it helps someone, and I am open for suggestions for any further tuning :)

# Section...
2,555
Posted By exm
Thanks for the help, but I think I'm still stuck....
Thanks for the help, but I think I'm still stuck.

So let's see I have a flat text file ldap.txt which contains
JDOE
HCLINTON
JBUSH

I will need to loop through those names like this...
2,555
Posted By exm
Need to pass Oracle SQL output to Linux and back... Help!
Hi all,

Hopefully you can help. This is what I'm trying to achieve:


Obtain a list of usernames out of an Oracle Database
Based on this list, link each username with an Oracle Internet...
1,581
Posted By exm
Thanks all! You have been very helpful as usual!
Thanks all! You have been very helpful as usual!
1,581
Posted By exm
[Solved] Disappearing backslash
Let's say I have a text file called process.out that contains:
cn=long\, ann,cn=users
cn=doe\, john,cn=users

I need to have the following appended in the beginning
ldapdelete -h $OIDHOST

So...
6,129
Posted By exm
Danke schon!
Danke schon!
6,129
Posted By exm
Perfect! Thank you all!
Perfect! Thank you all!
6,129
Posted By exm
RudiC... That works perfect. Thanks. Didn't know...
RudiC... That works perfect. Thanks. Didn't know why I didn't figure that out myself :)

DGPickett... Thanks for the example. I'm actually trying to remove duplicate lines, not blank lines. Not...
6,129
Posted By exm
RudiC - your part works. Thanks! Another...
RudiC - your part works. Thanks!

Another question. If I want to do another search and replace in it, like searching for 'abc' and replacing with 'abc-', how would the code change?

DGPickett -...
6,129
Posted By exm
Using sed to execute multiple commands
Let's say I have a file called test.out. In this file I want to do the following:
1. Search for DIP-10219 and with this:
2. Remove everything in front of cn=
3. Remove everything after *com
4....
3,072
Posted By exm
My bad! The original string works like a charm....
My bad! The original string works like a charm. THANK YOU!
3,072
Posted By exm
No output: $ sed -rn '/DIP-10219/...
No output:

$ sed -rn '/DIP-10219/ s/^.*[^,](cn=.*com).*$/\1/p' $MW_HOME/user_projects/domains/IDMDomain/config/fmwconfig/servers/*/dms_config.xml
$
3,072
Posted By exm
Any thoughts? Thanks!
Any thoughts? Thanks!
3,072
Posted By exm
I assume I have to substitute "file" with the...
I assume I have to substitute "file" with the actual file name? This returns no rows:

$ sed -rn '/DIP-10219/ s/^.*[^,](cn=.*com).*$/\1/p'...
3,072
Posted By exm
Need to grep certain entry out of log file
This one is a bit too challenging for me... Hopefully you guys can help.

Let's say I have a log file called:...
9,554
Posted By exm
Thank you all!
Thank you all!
9,554
Posted By exm
My bad. I want to copy AND rename them... I want...
My bad. I want to copy AND rename them... I want to append beta_ to the copied files...
9,554
Posted By exm
Thank you; that worked! ---------- Post...
Thank you; that worked!

---------- Post updated at 02:58 PM ---------- Previous update was at 02:43 PM ----------

One more question (and I thought I could figure it out on my own using your...
9,554
Posted By exm
Thanks for the prompt response, but I'm getting...
Thanks for the prompt response, but I'm getting this:

orabeta@hafindb01q: /home/orabeta $ ls /ebsbeta_f/flash/EBSUATQB/onlinelog/o1_mf_*.log | awk -F"_" '{system("cp "$0 " /ebssand/oradata/"...
9,554
Posted By exm
Need to move and rename a list of files
Hi,

I need to do something easy but I can't seem to figure out how to do this.

Let's say I have 6 files in the directory below:
/ebsbeta_f/flash/EBSUATQB/onlinelog
o1_mf_6_55klt7nr_.log
...
6,344
Posted By exm
Thank you guys.
Thank you guys.
6,344
Posted By exm
That works as well!!! One step further:...
That works as well!!!

One step further: let's say I want to replace prod with another value like test (so it has to read from /ebsprod_c/oradata, but the spooled output should be like...
6,344
Posted By exm
You rock! Another question: how can I spool...
You rock!

Another question: how can I spool this in file like this:
echo "DATAFILE" >> controlfile.sql
echo "`ls /ebsprod_c/oradata/*.dbf | sed -e '/log0.*/d' -e "s#.*#'&',#" -e '$s#,$##''`" ...
6,344
Posted By exm
Need help with a sh script to spool directory and modify the output (Oracle cnt file)
Hi,

I'm creating a shell script to dynamically create a recreate controlfile for an Oracle database. I need to read a cold backup file system, and make some changes to these files.

Let's say...
Showing results 1 to 25 of 25

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