Sponsored Content
Full Discussion: Question about 'find'
Top Forums UNIX for Dummies Questions & Answers Question about 'find' Post 302271117 by samsbery on Tuesday 23rd of December 2008 10:09:51 PM
Old 12-23-2008
find . -name "filename.ext" -print ## if you know the exact filename.
find . -name "*filename*" -print ## if you want to get files which contains that name
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find question

Is it possible for find to match on multiple arg's. Basically, I would like to be able to match on name and atime. Basically I want something like: find . -atime +31 <AND> -name *.log -exec rm -f {} \; Thanks (2 Replies)
Discussion started by: 98_1LE
2 Replies

2. UNIX for Dummies Questions & Answers

find ...question.

:D i am looking through the man pages of the find command and I have found the -printf and fprintf section.. . I tried this command and got an error find -follow -newer 'date.file' -printf %f file1 i keep getting a %f in directory listing and no input into file1 according to the manpages %f... (2 Replies)
Discussion started by: moxxx68
2 Replies

3. Shell Programming and Scripting

Question on Find Utility

Hi Guys, Do you know how can I find files with modificatioin time less than 30 MINUTES using the find utility? Or if u have any other mechanism to find it using script, I'll appreciate it. Thanks! (5 Replies)
Discussion started by: marlonus999
5 Replies

4. Shell Programming and Scripting

find . -name question

Not sure if I'm missing it, but I'm looking on the find man page, but can't find it. Here is what I'm doing find . -name "log_*" -type f -mtime +8 -exec rm {} \; How do I tell man to find all files matching that pattern, but only ones that end with a numeric character. I thought it was... (4 Replies)
Discussion started by: cbo0485
4 Replies

5. Shell Programming and Scripting

'find' question

hey guys! I need to find in a specific directory and its sub-directories a file thats passed has a argument, and print it has like a ls -l command! the problem is how do i print has a ls command but instead only the file name in the end, also the directory where its insered! ex: Want... (2 Replies)
Discussion started by: Shinni
2 Replies

6. UNIX for Dummies Questions & Answers

Dumb find question

All, For some reason I can't figure out why I can't wildcard my find statement to check for anything with a wildcard after. I can before the -name but not after. ie. find . -name *test works but find . -name test* gives me the error: find: paths must precede expression Usage: find ... (1 Reply)
Discussion started by: markdjones82
1 Replies

7. UNIX for Dummies Questions & Answers

Find Command Question

I was using this find command to search for this string find /usr/reports -name '*.txt' -type f -exec grep -l tbl_out:add_19 {} \; > /usr/work/junk.txt My question is, if I want to search another type of file extension besides '*.txt' how can I include it on the same line to say something... (5 Replies)
Discussion started by: NycUnxer
5 Replies

8. Shell Programming and Scripting

find command question

Hi all, I want to use find to 'find' files older than a file. The command I have come up with so far is find . -type f ! -newer filename -print | grep -v filename If I dont use the -v then the filename is included in the output is there a better way of formulating this command... (1 Reply)
Discussion started by: jonnyd
1 Replies

9. UNIX for Dummies Questions & Answers

A question on find command

I need to find all files with file names starting with alert and ending with .log I mean, the following files should be returnrned alertTST.log alertabcdefgh.log How can i do this ? (4 Replies)
Discussion started by: kraljic
4 Replies

10. UNIX for Dummies Questions & Answers

Question on ls and find

Hi, Is there an option to run ls to only show files owned by the current user? Currently doing ls | awk | grep for the user. If I use find and -user ${username}, I am getting Permission denied messages on some directories and am currently re-directing those messages as 2>/dev/null. Is that... (2 Replies)
Discussion started by: newbie_01
2 Replies
UDM_FIND(3)								 1							       UDM_FIND(3)

udm_find - Perform search

SYNOPSIS
resource udm_find (resource $agent, string $query) DESCRIPTION
Performs a search. The search itself. The first argument - session, the next one - query itself. To find something just type words you want to find and press SUBMIT button. For example, "mysql odbc". You should not use quotes " in query, they are written here only to divide a query from other text. mnoGoSearch will find all documents that contain word "mysql" and/or word "odbc". Best documents having bigger weights will be dis- played first. If you use search mode ALL, search will return documents that contain both (or more) words you entered. In case you use mode ANY, the search will return list of documents that contain any of the words you entered. If you want more advanced results you may use query language. You should select "bool" match mode in the search from. PARAMETERS
o $agent - A link to Agent, received after call to udm_alloc_agent(3). o $query - mnoGoSearch understands the following boolean operators: & - logical AND. For example, "mysql & odbc". mnoGoSearch will find any URLs that contain both "mysql" and "odbc". | - logical OR. For example "mysql|odbc". mnoGoSearch will find any URLs, that contain word "mysql" or word "odbc". ~ - logical NOT. For example "mysql & ~odbc". mnoGoSearch will find URLs that contain word "mysql" and do not contain word "odbc" at the same time. Note that ~ just excludes given word from results. Query "~odbc" will find nothing! () - group command to compose more complex queries. For example "(mysql | msql) & ~postgres". Query language is simple and powerful at the same time. Just consider query as usual boolean expression. RETURN VALUES
Returns a result link identifier on success or FALSE on failure. PHP Documentation Group UDM_FIND(3)
All times are GMT -4. The time now is 04:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy