Site icon BitBook

Listing Files Only With Grep Command

To only show the file names and not a preview of data add the command line param -l to grep. The below example searches in the current folder and recursively -r for the text ‘bitbook’. You can check out the full grep manual.

grep -r -l 'bitbook' *
Exit mobile version