[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Replace empty files with real one
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Replace empty files with real one |
Date: |
Mon, 13 May 2019 10:02:23 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Mon, May 13, 2019 at 03:51:50PM +0200, James wrote:
> What I was trying to say is they are all jpeg images files (either *.jpg or
> *.JPG).
Change all the -name '*.jpg' to -iname '*.jpg' .
> Currently the empty files are also in Picture (~/Picture/recovered) directory,
> but I can separate them to make things easier. It's not a problem at all.
Moving the recovered directory outside of the hierarchy that has the
empty files would be my first choice. Otherwise, you'd want to add
something like -size +0 to one of the find commands to skip the empties.