Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


find "/path" -type f -ctime +30


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
find "/path" -type f -ctime +30

When I use the command
Code:
find "/abc/xyz" -type f -ctime +30

getting the error as
Code:
find:"/abc/xyz /lost+found: Permission Denied"

I tired
Code:
find  "/abc/xyz" -type d \( ! lost+found \)  -type f  -ctime +30

The error is
Code:
find: paths must precede expression Usage: find [-H] [-L] [-P] [path...] [expression]

Tried
Code:
find  "/abc/xyz" -maxdepth 1  -type f  -ctime +30

it is searching in current directory, but I have sub directories in /xyz folder

Could any one help me how to solve the issue.

Thanks in advance,

Last edited by Don Cragun; 07-14-2015 at 05:00 AM.. Reason: Add CODE and ICODE tags.
# 2  
Perhaps something more like:
Code:
find  "/abc/xyz" \( -name lost+found -prune \) -o -type f -ctime +30

would work better for you.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
find . -path "*_nobackup*" -prune -iname "*.PDF" \( ! -name "*_nobackup.*" \)
wolfv
These three finds worked as expected: $ find . -iname "*.PDF" $ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \) $ find . -path "*_nobackup*" -prune -iname "*.PDF" They all returned the match: ./folder/file.pdf :b: This find returned no matches: $ find . -path "*_nobackup*" -prune...... Shell Programming and Scripting
3
Shell Programming and Scripting
Find lines with "A" then change "E" to "X" same line
nightwatchrenba
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this...... Shell Programming and Scripting
10
Shell Programming and Scripting
"find . -printf" without prepended "." path? Getting path to current working directory?
pstein
If I enter (simplified): find . -printf "%p\n" then all files in the output are prepended by a "." like ./local/share/test23.log How can achieve that a.) the leading "./" is omitted and/or b.) the full path to the current directory is inserted (enclosed by brackets and a blank)...... Shell Programming and Scripting
1
Shell Programming and Scripting
Command to find the "unix machine type".
abhisheksunkari
Hi all, Just need some help the following scenario, Is there any UNIX command to find the unix machine type (like whether the machine is belongs to Ssun ultra 45 type) like that .. please help me... UNIX for Advanced & Expert Users
2
UNIX for Advanced & Expert Users
Creating a Shortcut (to just type "l" but it runs "ls -lah")
ijustsawmars
How do I create shortcuts? For example: I just want to type one key "l" and have it output the command of "ls -lah" I believe it's creating a file called l with 755 permissions but I'm not sure where to put the file. *if it matters, I'm on a shared hosting web server using cPanel with...... Shell Programming and Scripting
2
Shell Programming and Scripting

Featured Tech Videos