grep help - find all files
by jan128 from LinuxQuestions.org on (#5EKNN)
Simple task - find all files matching pattern
"MDI*.pro"
using find and grep
Example not really identifying the file such as
using sudo find . | grep "MDI*.pro" -R
TEMP_SUBPROJECT.pro
/mnt/CAT_PROJECT/CAT_MAIN_PROGRAM/CAT_FT857_BLUETOOTH_MAIN/TEMP_SUBPROJECT
Quote:
Any helpcorrecting my command would be appreciated.


"MDI*.pro"
using find and grep
Example not really identifying the file such as
using sudo find . | grep "MDI*.pro" -R
TEMP_SUBPROJECT.pro
/mnt/CAT_PROJECT/CAT_MAIN_PROGRAM/CAT_FT857_BLUETOOTH_MAIN/TEMP_SUBPROJECT
Quote:
w@w-desktop:~$ sudo find . | grep "MDI*.pro" -R .local/share/recently-used.xbel: <bookmark href="file:///media/w/BACKUP/PROGRAM_DEV/QT/CAT_COPY/CAT_FT857/SUB_MDI/SUB_MDI.pro" added="2021-02-15T01:29:53.659797Z" modified="2021-02-15T01:29:53.659817Z" visited="2021-02-15T01:29:53.659799Z"> .local/share/recently-used.xbel: <bookmark href="file:///media/w/BACKUP1/PROGRAM_DEV/QT/CAT_NO_BT/CAT_FT857/SUB_MDI/SUB_MDI.pro" added="2021-02-15T01:32:12.685804Z" modified="2021-02-15T01:32:12.685817Z" visited="2021-02-15T01:32:12.685806Z"> grep: .mozilla/firefox/s2dursba.default-release/lock: No such file or directory Qt/6.0.1/gcc_64/include/QtCore/6.0.1/QtCore/private/qsimd_p.h:// sub-target for us. The first AMD processor with AVX2 support (Zen) has the Qt/6.0.1/gcc_64/include/QtGui/qopengles2ext.h:#ifndef GL_AMD_program_binary_Z400 Qt/6.0.1/gcc_64/include/QtGui/qopengles2ext.h:#define GL_AMD_program_binary_Z400 1 Qt/6.0.1/gcc_64/include/QtGui/qopengles2ext.h:#endif /* GL_AMD_program_binary_Z400 */ Qt/Tools/CMake/share/cmake-3.19/Modules/FindGTest.cmake: # The provided /MD project files for Google Test add -md suffixes to the w@w-desktop:~$ sudo find . | grep "TEMP*.pro" -R grep: .mozilla/firefox/s2dursba.default-release/lock: No such file or directory w@w-desktop:~$ |