Skip to content

Instantly share code, notes, and snippets.

@alecs
Created July 9, 2013 09:45
Show Gist options
  • Save alecs/5956089 to your computer and use it in GitHub Desktop.
Save alecs/5956089 to your computer and use it in GitHub Desktop.
perl find in path or print path
perl -e "use POSIX; my $path = $ENV{PATH}; @cale = split '\;', $path; foreach my $el (@cale) { print $el.\"\n\"; }"
perl -e "use POSIX; my $path = $ENV{PATH}; @cale = split '\;', $path; foreach my $el (@cale) { print $el.\"\n\"; `nixfind $el -type f -name \"*glib*\"`; print \"\n\n\"; }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment