Consider path in a directory structure
/A/B/C/D
/A/B/C/E
/A/B/O/P
now if I want to list all path which has sub directory C in it, then can it be done through grep? Expected output:
/A/B/C/D
/A/B/C/E
I tried using grep and find but could not achieve this.