N
N
Nikita Kamenev2019-01-15 19:21:34
bash
Nikita Kamenev, 2019-01-15 19:21:34

How to find all folders that have one file?

There is an images directory.
There are a lot of folders in this directory, and in these folders you need to find the folder1/folder2/folder3/config.ini file.
If it exists, then display the name of this folder in images. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MegaLoadOn, 2019-01-15
@MegaLoadOn

find -name config.php
or using an absolute path:
find /path/to/images/ -name config.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question