![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to find a specific files in a many directory | selamba_warrior | Shell Programming and Scripting | 7 | 05-28-2008 03:41 PM |
| How to list files with specific created date | Draculla | Filesystems, Disks and Memory | 2 | 05-03-2007 11:45 PM |
| List files created between specific date and time | jazjit | Shell Programming and Scripting | 3 | 04-27-2007 01:19 AM |
| List files with a specific date... | B14speedfreak | SUN Solaris | 4 | 06-15-2006 08:59 AM |
| List specific files from directories | Filippo | Shell Programming and Scripting | 4 | 02-17-2005 03:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
List all files that contain a specific directory
I need to list all files and subdirectories that contain "oradata".
For example, I have several files in several different directories that contain "oradata". I.e. /u07/oradata/1.dbf /u09/unix/whatever/oradata/2.xxx That is, whatever file on the system that contains a directory called "oradata" should be piped to a file output. I tried a few things; find -name "*oradata*" Any ideas?? |
|
||||
|
I also have one more question.
In my .profile i have the following environment variable set: ORACLE_SID=scwa102 export ORACLE_SID When I source my profile, (i.e. ./.profile) and issue echo $ORACLE_SID, I get: "ORACLE_SID undefined variable." If however, I issue the command at the Unix prompt: $ ORACLE_SID=scwa102 $ export ORACLE_SID $ echo $ORACLE_SID scwa102 It works. What gives? Why are these commands not becoming active in the .profile or when I log out and log in? |
|
||||
|
not sure
i dunno man....when i run it, it works every time.
$ . ./.profile There is one incident that this will fail, which i have replicated, its when your .profile doesnt exist. $ . ./.profile ksh: ./.profile: not found but your error is completely different. If i think of anything, i will let ya know. -S |
|
||||
|
Thank you.
I also have one more question.
In my .profile i have the following environment variable set: ORACLE_SID=scwa102 export ORACLE_SID When I source my profile, (i.e. ./.profile) and issue echo $ORACLE_SID, I get: "ORACLE_SID undefined variable." If however, I issue the command at the Unix prompt: $ ORACLE_SID=scwa102 $ export ORACLE_SID $ echo $ORACLE_SID scwa102 It works. What gives? Why are these commands not becoming active in the .profile or when I log out and log in? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|