Skip to content

Instantly share code, notes, and snippets.

@cppio
Created May 18, 2020 19:18
Show Gist options
  • Select an option

  • Save cppio/ad2de50e991ddf1479b1a8ba5751b678 to your computer and use it in GitHub Desktop.

Select an option

Save cppio/ad2de50e991ddf1479b1a8ba5751b678 to your computer and use it in GitHub Desktop.
A wrapper around locate to exactly match names.
#!/usr/bin/env bash
exec locate -b "\\$1" "${@:2}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment