Created
March 16, 2009 06:16
-
-
Save jinzhu/79752 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find '/pillar/Lab/' -mindepth 1 -maxdepth 1 -type d | | |
while read file | |
do | |
alias ${file##*/}="'cd $file'" | |
done | |
目的: | |
如果存在 /pillar/Lab/hi 目录,则 | |
alias hi='cd /pillar/Lab/hi' | |
通过hi转到/pillar/Lab/hi目录下, | |
但上面的脚本并不能正常工作,请问有什么错误吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment