|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
[Solved] remove all files of 2010
Hi,
how to use "rm" to delete only files from year 2010 ? Thank you. |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Something like this: Code:
touch -t 201001010000.00 start-yr
touch -t 201012312359.59 end-yr
find . -newer start-yr \! \( -newer end-yr \) -exec echo rm {} \;Remove the echo if you are happy with the output. Last edited by elixir_sinari; 08-14-2012 at 05:51 AM.. Reason: Typo |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
thank you.
Yes worked. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] Remove Duplicates and Sum in a spreadsheet | Giorgio C | UNIX for Dummies Questions & Answers | 2 | 05-30-2012 11:47 AM |
| [solved] Can't Remove Virt Adapter on VIO | Vit0_Corleone | AIX | 0 | 03-24-2012 07:50 AM |
| [Solved] Remove LaTex Tag with perl | mortl | Shell Programming and Scripting | 2 | 01-04-2012 10:56 AM |
| [solved] merging two files and writing to another file- solved | mlpathir | Shell Programming and Scripting | 1 | 10-07-2010 06:41 PM |
| [solved] remove pattern with sed | a27wang | Shell Programming and Scripting | 8 | 09-17-2010 01:17 PM |
|
|