Go Back    

Find command + replace the extension (.xxx) by *

UNIX for Beginners Questions & Answers

Kindly Note - This is a Single User Post by Forum Member royinfo.alain Regarding:
Find command + replace the extension (.xxx) by *.
Please Follow The Primary Link Above to View the Full Discussion.

Old 04-21-2017
royinfo.alain royinfo.alain is offline
Registered User
Join Date: Aug 2016
Last Activity: 24 April 2017, 3:44 PM EDT
Posts: 16
Thanks: 17
Thanked 0 Times in 0 Posts
Many thank to all of you, I used both and run very well & fast..

set +x
 find * -type f -mtime -365 | sed 's/[.][^.]*$//; s/$/*/' | sort -u > $MAITUT/FILES_TO_DELETE

Moderator's Comments:
Please use CODE tags as required by forum rules!

Last edited by RudiC; 04-22-2017 at 03:03 AM.. Reason: Changed ICODE to CODE tags.