![]() |
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 |
| UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to find files older than 30 days | anushree.a | Shell Programming and Scripting | 4 | 07-08-2009 08:43 AM |
| Find files older than 30 days in directories and delete them | lamoul | Red Hat | 2 | 03-21-2009 01:44 PM |
| Find files older than x days and create a consolidated single tar file. | Dawn Bosch | SUN Solaris | 3 | 09-09-2008 05:45 AM |
| Find files older than 20 days & not use find | halo98 | Shell Programming and Scripting | 2 | 05-18-2006 02:19 PM |
| Find files older than 5 days and remove tem after listing | ypatel6871 | UNIX for Dummies Questions & Answers | 1 | 09-05-2005 11:00 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Find files older than 10 days
What command arguments I can use in unix to list files older than 10 days in my current directory, but I don't want to list the hidden files.
find . -type f -mtime +15 -print will work but, it is listing all the hidden files., which I don't want. |
|
||||
|
Thanks for your post. I tried both commands strings and I still couldn't get it to work. I tried to find the files first before sending it to the -exec rm. I still tons of hidden files.
Not sure why they are not working. They seem to be ok to me. I will keep researching, but if anybody can come if any other idea, I will appreciate |
|
||||
|
Hi,
Code:
$ ls -la | grep ^- -rwxr-xr-x 1 scripter scripterworld 342 Aug 19 23:15 filevalid.sh -rw-r--r-- 1 scripter scripterworld 0 Aug 20 00:47 .hidden1 -rw-r--r-- 1 scripter scripterworld 307 Aug 19 20:15 testdir.sh $ find . -type f ! -name ".*" -print ./testdir.sh ./filevalid.sh $ |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|