[plug] Find similarly named files in directories

Timothy White weirdit at gmail.com
Fri Jan 12 20:08:42 WST 2007


On 1/12/07, Timothy White <weirdit at gmail.com> wrote:
>
> find |sed -r 's/.*\/(.*)/\0 \1/'|sort -k 2|uniq
> --all-repeated=separate -f 1| sed 's/[^ ]*$//'

Oh, and things like -f added to the sort command will do a lowercase
sort so any capitalisation is ignored for example.

Tim
-- 
Linux Counter user #273956
Don't email joeblogs at scouts.org.au



More information about the plug mailing list