How to tell 'find' command to jump to a position and search?
0
votes
1
answer
349
views
I'm preparing headers for a C++ project and I decided to use
find
to get include option to other header files. To list the right path, I need to use
with it, like:
cd 'PATH/TO/HEADER/FILE'
find ../../../
And only this way I can get the list of header directory to copy-paste to the header file. After that, I had to:
cd 'PATH/TO/MY/PROJECT'
To switch back to project path.
It's inconvenient to use
often, so, can I tell find
command to automatically 'jump' to the directory and search? I read through the man page and can't figure it out.
find PATH/TO/HEADER/FILE
is not a solution because I deliberately want pathnames to start with ../../../
.
Asked by ArchBug
(15 rep)
Jun 27, 2021, 07:52 AM
Last activity: Jun 27, 2021, 11:44 AM
Last activity: Jun 27, 2021, 11:44 AM