Re: [Help-bash] Replace empty files with real ones
From:
James
Subject:
Re: [Help-bash] Replace empty files with real ones
Date:
Tue, 14 May 2019 12:38:53 +0200
User-agent:
NeoMutt/20180716
Thank you ever so much!
It worked like a charm
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.