M
M
Mikhail Shatilov2018-12-30 10:39:05
linux
Mikhail Shatilov, 2018-12-30 10:39:05

What command will show the presence of files in large and small register in the same directory at the same time?

It is necessary to understand whether there are files in a given directory (including nested directories) that occur simultaneously in large and small register in the same folder.
It is desirable that this list be output to a file.
Example:

/data/folder1/file.txt
/data/folder1/File.txt
/data/folder2/image.img
/data/folder2/IMAGE.img

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2018-12-30
@iproger

more or less like this:
find -type f | sort --ignore-case | uniq -D -i

K
ky0, 2018-12-30
@ky0

There are many options. You can, for example, display a list of files, convert it to lowercase and look for duplicates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question