ã·ã§ã«ã§ï¼ä¸ã®ãã£ã¬ã¯ããªã«è¡ãã®ãããã©ãããã¦ï¼cd ../../../../ã¨ãããªãã¨ãããªãã¦ï¼æãçããï¼ ä¸ã«è¡ãããã®upã£ã¦ããã³ãã³ããä½ããã¨ã«ããï¼ ãã®1 up 3ã£ã¦ããã¨ï¼3ã¤ä¸ã«è¡ãã®ãä½ã£ãï¼ function up() { i=0 while [ $i -lt $1 ] do cd ../ i=`expr $i + 1` done } 使ãæ¹ % pwd /Users/fkd/co/dev/dotfiles % up 3 % pwd /Users/fkd %ããã¯ä½¿ãã«ããã¦ï¼cd ../../ã£ã¦æã¤ã¨ãã¯ï¼ããã¤ä¸ã«è¡ããèããªããï¼../ã£ã¦æã£ã¦ãï¼ããã ã¨ï¼å ã«æ°ãã¦ãããªãã¨ãããªãã¦ï¼é£ããã£ãï¼ ãã®ï¼ èããªããå ¥åã§ããããã«ãã¦ã¿ãï¼å¼æ°ã®æ°ã ãè¦ãï¼ function up() { i=0 while [ $i -lt $# ]
{{#tags}}- {{label}}
{{/tags}}