So I have a few utility scripts in my ~/scripts folder. They are all bash scripts, nothing amazing about that. One is named sfind.sh, the other is svn-add-all.sh. At some point, I created symlinks to them, and made them executable. So I can run sfind.sh at my prompt as $ sfind and svn-add-all.sh as $ addall.
The problem is, I cannot remember where I put my symlinks. They have to be on my $PATH, but doing an ls on the folders in my $PATH hasn't shown anything.
echo $PATH
/usr/local/bin:/usr/local/drush:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
So then I tried doing a system-wide find. Here's what I tried:
sudo find / -lname /Users/kyle/scripts/\* -exec ls --color=always {} \;
sudo find / -mount -lname /Users/kyle/scripts/\* -exec ls --color=always {} \;
sudo find / -name "sfind"
sudo find / -lname "sfind"
sudo find / -name "sfind*" -type fl
sudo find / -name "addall"
And still I got nothing.
Using locate and which hasn't worked either. Obviously these links must be available from somewhere.
Is there any way I can find the location of these symlinks?
Thanks.
type sfind? – jlliagre Jun 17 '11 at 13:37