How to find a string in all directories/folders

Good Day,
I need to search for a word through out all the directories .Is there any command that which I can type to search for a string in all the directories,folders and sub folders at one time.
Thanks in advance.
Regards,
Gopi.CH
Edited by: 915796 on 10-Jun-2012 19:18

Use the find command if you are looking for a specific file or directory name. The following example will find only filenames (type f) that contain the word "sample", but exclude the results found in /usr and /u01:
# find / -type f -name "*sample*" | egrep -v "/u01|/usr"
/home/oracle/snippets/parse2.sample
/home/oracle/snippets/parse3.sample
/root/sample.bin.dc
/root/sample2.bin
/root/sample.bin
/root/sample.des
/root/sample.out
/etc/gdm/PostLogin/Default.sample
/proc/sys/kernel/perf_event_max_sample_rateUse the grep command to search for content. For example:
# grep -r "Dude" /home
/home/oracle/snippets/sched_stop_dist.sh:# Author   : Dude
/home/oracle/snippets/healthcheck.sh:# Author:     Dude

Similar Messages

  • How to find the list of all user exits modified by the users

    How to find the list of all user exits using by in R3

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to find out what are all the change pointers assoicated for an idoc ??

    Hi ,
    How to find out what are all the change pointers activated for an idoc ??
    Thanks,
    Varma

    Verma,
    You can check what are the active Change Pointers for the message type in tcode <b>BD50</b>
    Use tcode <b>BD61</b> to check whether change pointers are active or not??
    Hope this helps..

  • How to find a string in SAP code

    Hello,
    Does anyone here know how I can find a string inside the SAP code efficiently? I tried finding a custom table name using the Where-used list feature but the results doesn't show the complete/correct results. It missed some user exits where the table name was also used.
    Please help

    Hello Jimmy,
    You can try what Krishna has said there is one more way that is
    goto trxn SE12,
    enter Z* in the table name field,
    it will give a popup box with all the Ztables found in your system...you can find your table maybe it is a little tedious job
    Sravani

  • How to search the file in all directories

    dear sir,
    i know how to retrive ms word while clicking the button action.,
    if know the path of file where it exists.
    if i dont know the path,i want to search ms word in exiting all directories
    and retrive msword .how to do search the file?
    please help me ,
    thanks ,
    pullareddy
    [email protected]

    Lets go back to your first question, the one you didn't post here. Why do you want to "retrieve ms word"? My guess is that you want to execute the Microsoft Word executable program and have it load a Word document that you happen to have available.
    If that's the case (and dozens of people have already asked that here), then do this:Runtime.getRuntime().exec("start yourdoc.doc");but put the actual file name in there in place of "yourdoc.doc".
    If you have some other reason for wanting to find MS Word's executable (e.g. you want to delete it), then please reply to this post and let us know.

  • How to search the file in all directoris

    dear sir,
    i know how to retrive ms word while clicking the button action.,
    if know the path of file where it exists.
    if i dont know the path,i want to search ms word in exiting all directories
    and retrive msword .how to do search the file?
    please help me ,
    thanks ,
    pullareddy
    [email protected]

    Sorry I do not understand your question.
    If your question is
    1. How Do I iterate over files in a Directory? Then see A1.
    -or-
    2. How do I let the user select a File (Dir)? Then see A2.
    A1:
    void processDir( String dirPath ) {
    File dirFP = new File( dirPath );
    String dirs[] = dirFP.list();
    for ( int i = 0; i < dirs.length; i++ ) {
    String fileName = dirs;
    String dirName = dirPath + File.separator + fileName;
    File theFile = new File( dirName );
    if ( theFile.isDirectory() == true ) {
    processDir( dirName );
    else {
    // Not Directory! ... It is a file!
    int nDot = fileName.indexOf( '.' );
    String ext = (nDot > 0 ) ? fileName.substring( nDot ) : "";
    // Process File...
    // To see if the extension is of a
    // particular Type...
    if ( ext.compareTo( "xyz" ) == 0 ) {
    // Process special file type...
    A2:
    String BrowsePath( )
    JFileChooser chooser = new JFileChooser();
    chooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY );
    chooser.setMultiSelectionEnabled( false );
    JFrame parentFrame = null; // Or better!
    int returnVal = chooser.showOpenDialog(parentFrame );
    String result = null;
    if (returnVal == JFileChooser.APPROVE_OPTION)
    File selectedFile = chooser.getSelectedFile();
    result = selectedFile.getAbsolutePath();
    return result;
    -John
    null

  • How to find the list of all tables populated

    How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
    Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to search a string in all opened html report ?

    Hey people .. Sorry to bother U again.. I have a problem again.. and thanks to solve my previous problems...
    I want to make an application in which I want to search a result string
    in all opened Html reports... If I don't want to go to the all
    desination and search one by one.. Is there any method to search the
    result in all opened reports at that time..
    I am very confulsed .. I have no Idea how I am gonna solve it... If anybody can help.. I would really appreciate that.. Thanks..

    Thanks Justin I have managed that problem..
    I am stuck at another one.. If you can help.. I have also posted addressing you in another relavent Thread..
    I have a spreadsheet data which has 286*516 Pixels data. Data is 16bit
    (from which only 12bit is usefull). Each data is a Level of a Pixel. I
    want to Display Grayscale Image.
    I have used 3D Graph to display it and projection XY selected . I am
    getting My image as grayscale Image but somewhat slow display if I
    continously run it.
    Second Method I tried is Directly "some 2D Graph" ( Sorry I forgot the
    Name.. I will get it next time) which directly display that 16 bit
    spreadsheet file. But it has only 255 levels so it didn't utilized my
    data and resolution is poor.
    My doubts are..
    1. Is 3D graph method I am using is Actually displaying my 16 bit image.
    2. In 3D graph method : Because of that 12 bit format of my data and I
    had to convert it in 16 bit I am loosing any levels or       
        Resolution ?
    3. Is there any way of increasing 255 level to 16bit level 2D Graph method.
    4. Is there any method that can display my 16bit information as a image utilizing all my levels.
    Please Do me a favor .. thank you

  • How to find a string inside Excel table

    Hi,
    I am trying to find a string inside Excel table, and it does not work. Please see attached figure. I use the find Invoke Node and do not get anthing.
    Please help
    Attachments:
    find_excel.JPG ‏21 KB

    See attached files.
    Thanks,
    David
    Attachments:
    Excel_table.xls ‏15 KB
    Read_XL.vi ‏42 KB

  • Finder View Options, For All Sub Folders

    If I understand how View Options work in Finder windows ...
    I can set View Options for a particular folder to always open up in a particular View Options setting.
    I can set that very same View Option as the Default View Option for all the rest of the folders I open up.
    But, what I would like to do is set the View Options for a folder and all it's sub folders to be the same. Without changing the default View Option for the rest of the folder I open up.
    For example.
    I like to have my Documents open up in List View.
    I like to have my Photos open up in Icon View. (along with certain Icon View Option settings)
    Is there a way to do this?
    Can I set the directory and all sub folders/directories for all my photos to open up the way I would like them? Without having to change the way all my Document folders/directories open up?
    Because the way it seems to work now, is that every time I create a new folder in my Photos directory/folder, I have to manually set the View Options, since the default is List View and not Icon view. If I change the default to Icon View, then any new folder/directory in my Documents will then open up in Icon View.

    If the folder is not set to open in a specific view, it should open in the same view as the containing folder. When using mixed views, you need to open the folder in another window to get the view it previously had.
    In your example, setting Documents to always open in list view and Photos to always open in Icon view should have any new sub folders open in the same view. If any existing sub folders have a different view, you will need to manually change the view, since the Finder will (usually) keep track of the view any particular folder has.

  • How to find a hierarchy of all Itmes Pages inside a Page

    Hi,
    I am using Oracle Portal 10.1.2. Need some information:
    I have a page with Items or it can have both items, sub-pages and further each subpage can have items and/or sub-pages. How can I find all the objects in a hierarchical order. How can I construct my SQL to query the back-end tables that I can query to build a hierarchy for the whatever Page's pageid I provide.
    If given a Page ID need to return all the items, sub-pages and so forth. I am trying to build a Tree structure Menu.
    I have one Top page with tabs and in each tab I am adding one Portlet i.e. a page that is published as Portlet. Now this page which is published as a portlet can only have Items added or can have n number of sub-pages underneath which in-turn can have items and/or sub-pages and so forth, just like a Folder Structure in Windows. As soon as the user clicks a tab want to show all the items/pages in a tree like format.
    Any idea on how can I proceed any help is really appreciated.
    Thanks

    Hi,
    I am using Oracle Portal 10.1.2. Need some information:
    I have a page with Items or it can have both items, sub-pages and further each subpage can have items and/or sub-pages. How can I find all the objects in a hierarchical order. How can I construct my SQL to query the back-end tables that I can query to build a hierarchy for the whatever Page's pageid I provide.
    If given a Page ID need to return all the items, sub-pages and so forth. I am trying to build a Tree structure Menu.
    I have one Top page with tabs and in each tab I am adding one Portlet i.e. a page that is published as Portlet. Now this page which is published as a portlet can only have Items added or can have n number of sub-pages underneath which in-turn can have items and/or sub-pages and so forth, just like a Folder Structure in Windows. As soon as the user clicks a tab want to show all the items/pages in a tree like format.
    Any idea on how can I proceed any help is really appreciated.
    Thanks

  • How to find a String in a Vector???

    Hi!!
    Thanks in advance for read this post. I have a little problem... please help me.
    I need to find if a String exists or not in a Vector. The vector is a list of results from a database. Here goes my code:
    <html>
    ... html code ...
    <%
    int IdClass = Integer.parseInt(request.getParameter("IdClass"));
    int module = Integer.parseInt(request.getParameter("module");
    Connection conn = null;
    Statement stat = null;
    ResultSet rs = null;
    int oError = -1;
    String oMessage = null;
    List Functions = new Vector();
    CallableStatement cs = null;
    try{
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    conn = DBConnection.GetConnection(DBConnection.DSN);
    if (conn != null) {
    cs = conn.prepareCall ("begin procedure(?,?,?,?); end;");
    cs.setInt(1,IdClass);
    cs.registerOutParameter(2,Types.INTEGER);
    cs.registerOutParameter(3,Types.VARCHAR);
    cs.registerOutParameter(4,OracleTypes.CURSOR);
    cs.execute();
    rs = (ResultSet)cs.getObject(4);
    oError = cs.getInt(2);
    oMessage = cs.getString(3);
    if (oError == 0) {
    while (rs.next()) {
    Functions.add(rs.getString(1));
    session.setAttribute("sessionFunctions", Functions);
    out.println("<script>document.location.href=\"Ok.jsp\";</script>");
    else {
    String message = null;
    message = "Error "+oError+": "+oMessage;
    out.println("<script>document.location.href=\"NO.jsp\";</script>");
    cs.close();
    if (conn != null) {
    conn.close();
    %>
    ... html code...
    </html>
    That code generates a Vector that contains this:
    [1, 2, 3, 6, 7, 8, 15, 28, 35, 41, 58, 65, 66, 68, 71, 74]
    In the Ok.jsp page, i have a String like this:
    String access = "2,7,14,15,28";
    First, i need to get the values of the sessionFunctions.
    String X = (String)session.getAttribute("sessionFunctions");
    I need to know if each number (2,7,14...) exists in the vector. For example, in this case, the follow numbers exists: 2, 7, 15, 28.
    So, if the number exists in the Vector, i will generate some HTML code. If not, i will generate a different HTML Code.
    if (String exists in Vector = 1) {
    out.println("Yes!!!");
    else {
    out.println("No...");
    Can somebody help me? I`ve read a lot of examples, a lot of posts in this forum, i`ve look a lot of files of another project in my company, but i can�t find how to do this...
    Thanks in advance.
    Rapeteiro.

    If you are putting a Vector in a session, you should be able to get it back as a Vector. Try this:
    // retrieve Functions Vector from session
    Vector userProfile = (Vector) session.getAttribute("sessionFunctions");
    String access = "2,7,14,15,28";
    // prepare a Vector from this string
    Vector accessVector = new Vector();
    StringTokenizer acsTokenizer = new StringTokenizer(access, ",");
    while(acsTokenizer.hasMoreTokens ())
    accessVector.addElement (acsTokenizer.nextElement ());
    // check for each function in string against userProfile Vector
    for(int f=0;f<accessVector.size ();f++)
    String function = (String)accessVector.elementAt (f);
    if(userProfile.contains (function)
    %>User has access to this function<%
    else
    %>User does not have access to this function<%
    Hope this helps!
    -Mak

  • How to find a string inside another String variable

    Hi,
    I need to find whether a string is available in a String of varying length.
    i.e., i want to know string "access" is available in a String variable( may have values like "microsoft access 2000 bla bla bla .." or "bla bla access microsoft").
    so, i dont know the starting point of the word 'access' in the String variable.
    Pls help me in doing this.
    Thanks in advance,
    Rao

    Check the API documentation for this method:
    "int indexOf(String str)
    Returns the index within this string of the first occurrence of the specified substring."

  • How to find your "List of all the Registered Apple Products" using your Apple id

    Guys......
    Previously was not able to find my list of registered apple products...  After a bit of dwelling into Apple websites found the right link.
    I saw another post dated back in 2010 which is now archived, but with out the right location to see all ur registered apple products.
    Here is the link...  "https://supportprofile.apple.com/MySupportProfile.do "
    Cheers.

    FINALLY! Thank you!

  • How to find out names of all stored procedures?

    Hi All,
    I need to find out the names of all stored procedures with parameters and return types. I can use DBA_SOURCE, but in this case I must parse TEXT to find out what I need. Is there any dictionary where the names, parameters and return types of stored procedures saved separately?
    Thanks,
    Andrej.

    Not much fair to bring this old post up, sorry!
    I am still looking for an answer to my post
    where are stored functions like ORA_HASH or GROUPING_ID

Maybe you are looking for

  • Urgent urgent...plzz

    hi, hi gurus, what is difference between service tax with credit and without credit.............. i want a create a tax code for service tax without credit... if i use this tax code what would be effects,  will the tax be added to the base amount...

  • How do I design this in data warehouse?

    I am working on building a data warehouse for insurance quote data. Each quote will have an applicant and can have an optional co-applicant. Each applicant and co-applicant will have prior auto insurance history, prior home insurance history, current

  • I am not able to access itunes store since updating to 10.4

    Hi Guys,             I have updated to itunes 10.4 and cannot access the itunes store on my laptop, when i first switch on my laptop it generates a message box which states " The Procedure Entry Point xmlTextReaderConstName could not be located in th

  • Cleaning Up "Untitled Audio" Files

    I used to not name a project until after i'd recorded multipe tracks, so over the months i've accumulated a lot of "untitled audio" tracks numbered from 1-300 or so. Is there any way to see which files were used for which song so I can properly renam

  • What do I use as a password to link my Ipad to my HP Office Jet 8600?

    I just bought an e-print (HP Office Jet 8600 pro) so I could print w/my Ipad, what Password do I use w/Ipad to connect the 2?