Menu

Bastard Blog

Rants about Linux, technology, data, and science

Primary Menu

Skip to content
  • Home
  • About
  • ComputerBastard
Search

Month: August 2016

Bash Command to Delete all Files Based on Age

Posted onAugust 15, 2016AuthoradminLeave a comment

To delete all files in the current directory (and all subdirectories) based on age (in this case, 7 days), you can use the following: find `pwd -P` -mtime +7 -ctime +7 | xargs -I {} bash -c ‘if [ ! -d {} ] ; then \ echo {}; fi’ | xargs -I {} rm -f Read More …

CategoriesHowto, Linux, Quick Tip

Recent Posts

  • List all user Screen Sessions
  • SaaS: More Dangers of the Cloud
  • IaaS: Danger! Unexpected Risks Lie Ahead
  • Covid-19: Overreactions, Economic Destruction, Supply Chain Disruptions
  • Free Will?

Recent Comments

  • Rich Knapp on Covid-19: Overreactions, Economic Destruction, Supply Chain Disruptions
  • beesey on Canadian Healthcare: A Kafkaesque Nightmare
  • Srednii on Create Bootable Hirens CD on USB using Linux
  • amy rollis on Canadian Healthcare: A Kafkaesque Nightmare
  • admin on Canadian Healthcare: A Kafkaesque Nightmare

Archives

  • January 2021
  • March 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • December 2016
  • November 2016
  • October 2016
  • August 2016
  • March 2016
  • September 2015
  • July 2015
  • April 2015
  • March 2015
  • December 2014
  • January 2013
  • December 2012
  • November 2012

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2021 Bastard Blog. All Rights Reserved. | Catch Responsive by Catch Themes
Scroll Up
  • Home
  • About
  • ComputerBastard