Quantcast
Viewing latest article 10
Browse Latest Browse All 91

Recursively find files with the same filename

I needed a way to find files with the same filename, but were not identical files. Thankfully Reddit had the solution I was looking for: a combination of find, sort, and while loop with if statements. https://www.reddit.com/r/bash/comments/fjsr8v/recursively_find_files_with_same_name_under_a/ find . -type f -printf '%f/%p\0' | { sort -z -t/ -k1; printf '\0';} | while IFS=/ read … Continue reading Recursively find files with the same filename

The post Recursively find files with the same filename appeared first on Technicus.


Viewing latest article 10
Browse Latest Browse All 91

Trending Articles