A blog about developing
  • A blog about developing

How to delete zero byte files in your folders

Posted on July 20, 2017 at 3:58 pm.

Written by segorev

It is easy peasy like this:

find . -type f -name "*.php" -size 0 -print0 | xargs -0 rm

And that’s all!

Tags: bash, files, linux, unix, zerobyte


Recent Posts
  • File protocol in GIT
  • Types and Typing in programming languages
  • How to swipe YouTube embedded clip in Slick gallery slider on mobile
  • How to disable Gutenberg in WordPress
  • How to create a GraphQL schema with PHP and webonyx/graphql-php
Recent Comments
  • segorev on How to change recipient email on send event in Contact Form 7 (WordPress)
  • Ryan on How to change recipient email on send event in Contact Form 7 (WordPress)
Archives
  • November 2022
  • September 2022
  • July 2022
  • January 2022
  • February 2021
  • January 2020
  • February 2018
  • January 2018
  • September 2017
  • August 2017
  • July 2017
  • May 2017
  • April 2017
  • February 2017
  • December 2016
Categories
  • apache
  • contact form 7
  • css
  • frontend
  • git
  • google maps
  • graphql
  • Gutenberg
  • html
  • jade
  • javascript
  • jquery
  • modx
  • mysqld
  • notes
  • percona
  • php
  • programming
  • Uncategorized
  • visual composer
  • woocommerce
  • wordpress
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org