Agnus Dei (jackal) wrote,
Agnus Dei
jackal

How to make "find -exec grep" tell you both the file it match _and_ the line it matched on

How to make "find -exec grep" tell you both the file it match _and_ the line it matched on

# find /etc/ssh/ -exec grep sftp {} +
/etc/ssh/sshd_config:Subsystem sftp /usr/lib/openssh/sftp-server
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments