About UsContact Us

The job posting issue has been fixed, sorry for inconvenience caused.

You can now post jobs without registering, however, all job posts will subject to review before publishing.

 

CMCommunity Team

 


Users: If you have a Gmail account, you do not need to register; you may login using your full Gmail account username and password.

Home Article Index UNIX Tips How can I find and remove selected files recursively on AIX?
English French German Italian Portuguese Russian Spanish

Member Login

Welcome
Users: If you have a Gmail account,you can use full GMail emaill address as user id and your GMail password.

If you do not wish to use GMail account, please register a new CMCommunity account.



Related Items

Statistics

Members : 21880
Content : 785
Web Links : 8
Content View Hits : 638308

Stats: Our Visitors

Top 10:
Russian Federation flag 21%Russian Federation
United States flag 18%United States
Unknown flag 17%Unknown
Ukraine flag 9%Ukraine
Latvia flag 5%Latvia
Germany flag 5%Germany
Netherlands flag 3%Netherlands
United Kingdom flag 3%United Kingdom
Japan flag 2%Japan
Luxembourg flag 2%Luxembourg
Visits from 145 countries
| Online Users: 14  |
Hello Guest! If you wish to submit any contents, please login or register.
How can I find and remove selected files recursively on AIX? PDF Print E-mail
Tuesday, 29 November 2005 12:21
This can be achieved by using a find command:

Example 1: Delete all files with txt extension from a directory “/home/user1”

find /home/user1 \( -name '*.txt' \) -exec \rm {} \;

Example 2: Remove all files named “test.txt”  OR “test.log” from a directory” “/home/user1”  that have not been accessed for a 5 days and that are not mounted using NFS:

find  /home/user1 \( -name ‘test.txt’ -o  -name 'test.log' \) -atime +5 ! -fstype nfs -exec \rm {} \;

Last Updated on Tuesday, 29 November 2005 12:23