دنبال کننده ها

۱۳۹۶ اسفند ۱۲, شنبه

unix - Access all the provide parameters and print them in bash

[ad_1]



I have a custom command that I create call PUSH



I want to run



PUSH #1 #2 #3 #4



I want to dynamically access all my arguments, I seem to have a hard time.



How do I correctly do it?



I want to access



#1 #2 #3 #4






I know I can not use $1, $2, $3, or $4.



I've tried



PUSH a b c | echo $@








How would one go about and do this ?






I'm open to any suggestions at this moment.



Any hints/suggestions / helps on this be will be much appreciated!




[ad_2]

لینک منبع