in reply to search for folder
Hi, make it easy on yourself and use a tool built for the job:
perl -MPIR -wE 'chomp(my $wanted = <>); say for PIR->new->dir->name(qr +/$wanted/)->all("C:/")' [download]
Hope this helps!