All Questions
9 questions
1
vote
3
answers
1k
views
Recursively list path of files only
Why
I have two folders that should contain the exact same files, however, when I look at the number of files, they are different. I would like to know which files/folders are present in one, not the ...
0
votes
1
answer
110
views
A printf format for "find" or a means to control diff in comparing files across file systems
Working from home, the contents of my laptop undergoes a lot of changes. Before lockdown, I was usually in the office, and I could manually mirror files to a network drive.
Working from home means no ...
1
vote
2
answers
114
views
How to verify that files in A folder are also in B folder
I use my synology DS1515+ and DSM 6.2.2.
First of all, please refer to the picture as below;
First, I download some video files. Examples of filenames are as above.
And second step is that copying ...
6
votes
3
answers
2k
views
Find files that have the same name as the directory
I have the next problem:
Directory Example1 has three files: Example1, Things and Pictures.
Directory Example2 has three files: Example2, Example3 and Pictures.
I need a list showing only the ...
3
votes
3
answers
527
views
List files not having another file with suffix
Consider a directory with the following files:
file1
file1.suffix
file2
file3
file3.suffix
I need to list all files such that there doesn't exist another file having the same name and a known suffix. ...
-2
votes
6
answers
7k
views
How can I compare two files line by line?
I have two files A and B which are almost same with some lines different and with some lines jumbled. Since the two files are systemverilog files the lines also contain special characters like ; , = + ...
1
vote
1
answer
67
views
Different results OS X/Linux with "find PATH -mount \( -type f -o -type d \) -print0 | LC_ALL=C sort --zero-terminated > OUTPUT.txt"
this command is part of a script I use for comparing files:
find test/ -mount \( -type f -o -type d \) -print0 \
| LC_ALL=C sort --zero-terminated > OUTPUT.txt
// test/ is the PATH
OUTPUT.txt ...
15
votes
3
answers
14k
views
diff -r only for certain file types
Is there a way I can perform a recursive diff of two directories but only compare (in their respective places) files that match a specific filename or filetype predicate?
E.g. I would like to do ...
1
vote
1
answer
981
views
Running 'diff 'command after the 'find' command
I'm running this code on shell
mv -f ~/sites/text1.txt ~/sites/text2.txt;find ~/sites/ -type f -exec sha1sum {} >> ~/sites/text.txt \;diff ~/sites/text1.txt ~/sites/text2.txt;
However every ...