Reg: Search for a directory


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Reg: Search for a directory
# 1  
Old 01-07-2008
Reg: Search for a directory

Dear All,

I am new to Unix and i need a small Help from you Guys.....

The current structure of my system is as follows:
/Abc/xyz/cpd/std/re/doc

Each cpd directory has n number of std's. Each std has n number of re's.
My requirement is to write a UNIX script that would search whether doc directory is present under all re's directories.
If it is not, i need to write it into a temp file with the full path /Abc/xyz/cpd/std/re/doc.

Can anyone of you help me in writing a UNIX script for the above mentioned requirement ASAP.

Looking forward to your response.

Thank You.

Regards,
Rajani-kanth.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problems with reg.-expressions in a awk-search-pattern

Hi, i have some problems with regular expressions in a awk search pattern. what i want to do: i want to calculate the mean-value in the time from 00:00 to 06:00 how my data looks like: .... 04/01/13-01:40 670992 54802 80711 116460 156177 04/01/13-01:50 703725 60150 85498 ... (3 Replies)
Discussion started by: IMPe
3 Replies

2. Shell Programming and Scripting

Change to directory and search some file in that directory in single command

I am trying to do the following task : export ENV=aaa export ENV_PATH=$(cd /apps | ls | grep $ENV) However, it's not working. What's the way to change to directory and search some file in that directory in single command Please help. (2 Replies)
Discussion started by: saurau
2 Replies

3. UNIX for Dummies Questions & Answers

search for a pattern in a directory?

Hi, i need help on how to do this: to make a shell script that reads 2 parameters in command line, one directory and pattern. Then it must search for the string in all files starting from the indicated directory (including subfolders) and excluding binary files. The results should show the... (1 Reply)
Discussion started by: ubu-user
1 Replies

4. Solaris

reg directory permission

One small doubt. can anyone explain me the difference between directory read and execute permission. (2 Replies)
Discussion started by: rogerben
2 Replies

5. Shell Programming and Scripting

Reg:how to search a file recursivly

Hi Guys, can any help to write a script to search for a file Recursively and i need to write a path of the file into some other file. May be upto 5 directories. Regards, Rajanikanth. (3 Replies)
Discussion started by: Rajanikanth
3 Replies

6. Shell Programming and Scripting

Reg: Search for a directory

Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n number of re's. My requirement is to write a UNIX script that would search whether doc... (8 Replies)
Discussion started by: Rajanikanth
8 Replies

7. Linux

Reg: Search for a directory

Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n number of re's. My requirement is to write a UNIX script that would search whether doc... (1 Reply)
Discussion started by: Rajanikanth
1 Replies

8. UNIX for Dummies Questions & Answers

Reg: Search for a directory

-------------------------------------------------------------------------------- Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n... (1 Reply)
Discussion started by: Rajanikanth
1 Replies

9. Shell Programming and Scripting

Reg: Search for a directory

Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n number of re's. My requirement is to write a UNIX script that would search whether doc... (0 Replies)
Discussion started by: Rajanikanth
0 Replies

10. Shell Programming and Scripting

search all files and sub directory

I wanted to search in all the sub directories under /vob/project (recurse) in everything inside /vob/project. search.run for x in `cat search.strings` do find /vob/project -type f -print | xargs grep -i $x > ~/$x.txt done search.string hello whoami I am getting the error ... (5 Replies)
Discussion started by: siva_jm
5 Replies
Login or Register to Ask a Question
std::locale::facet(3)					     Library Functions Manual					     std::locale::facet(3)

NAME
std::locale::facet - SYNOPSIS
Inherited by std::__codecvt_abstract_base< _InternT, _ExternT, encoding_state >, std::__codecvt_abstract_base< char, char, mbstate_t >, std::__codecvt_abstract_base< wchar_t, char, mbstate_t >, std::__ctype_abstract_base< wchar_t >, std::__codecvt_abstract_base< _InternT, _ExternT, _StateT >, std::__ctype_abstract_base< _CharT >, std::__moneypunct_cache< _CharT, _Intl >, std::__numpunct_cache< _CharT >, std::__timepunct< _CharT >, std::__timepunct_cache< _CharT >, std::collate< _CharT >, std::ctype< char >, std::messages< _CharT >, std::money_get< _CharT, _InIter >, std::money_put< _CharT, _OutIter >, std::moneypunct< _CharT, _Intl >, std::num_get< _CharT, _InIter >, std::num_put< _CharT, _OutIter >, std::numpunct< _CharT >, std::time_get< _CharT, _InIter >, and std::time_put< _CharT, _OutIter >. Protected Member Functions facet (size_t __refs=0) throw () virtual ~facet () Static Protected Member Functions static __c_locale _S_clone_c_locale (__c_locale &__cloc) throw () static void _S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0) static void _S_destroy_c_locale (__c_locale &__cloc) static __c_locale _S_get_c_locale () static const char * _S_get_c_name () throw () static __c_locale _S_lc_ctype_c_locale (__c_locale __cloc, const char *__s) Friends class locale class locale::_Impl Detailed Description Localization functionality base class. The facet class is the base class for a localization feature, such as money, time, and number printing. It provides common support for facets and reference management. Facets may not be copied or assigned. Definition at line 338 of file locale_classes.h. Constructor &; Destructor Documentation std::locale::facet::facet (size_t__refs = 0) [inline], [explicit], [protected] Facet constructor. This is the constructor provided by the standard. If refs is 0, the facet is destroyed when the last referencing locale is destroyed. Otherwise the facet will never be destroyed. Parameters: __refs The initial value for reference count. Definition at line 370 of file locale_classes.h. virtual std::locale::facet::~facet () [protected], [virtual] Facet destructor. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::locale::facet(3)