I'm runing a grep to find recursively filenames which files content contain a string.
grep -rl string-to-find $pwd
The command returns results as expeted, but with file name and path:
var/log/httpd/access.log
var/log/httpd/access.log.1
How could I set it return only file name not full path?
I would like to get back as result:
access.log
access.log.1