In bash shell, what is the command to go to a special directory based on two input arguments?
The command I want to get executed is this:
cd /home/btfoouser/mia_YOCTO/build_4/build/tmp-eglibc/deploy/images/p99/
I want to pass build4
and p99
as my input arguments to the cd command from the command line.
For example, the command will be my_cd build_4 p99
, which should get translated to
cd /home/btfoouser/mia_YOCTO/build_4/build/tmp-eglibc/deploy/images/p99/
I tried:
alias my_cd ='cd /home/btfoouser/mia_YOCTO/$1/build/tmp-eglibc/deploy/images/$2'