I have a file structure like so
a/file1
a/file2
a/file3
a/...
b/file1
b/file2
b/file3
b/...
...
where within each dir, some files have the same file size, and I would like to delete those.
I guess if the problem could be solved for one dir e.g. dir a, then I could wrap a for-loop around it?
for f in *; do
???
done
But how do I find files with same size?
Solution working with “file names with spaces” (based on Kent (+1) and awiebe (+1) posts):
to make it remove duplicates, remove
echofrom xargs.