13
curl http://beyondgrep.com/ack-2.02-single-file > ~/bin/ack && chmod 0755 !#:3
ack installation guide से !#:3
का अर्थ क्या है?का अर्थ क्या है! #: 3?
curl http://beyondgrep.com/ack-2.02-single-file > ~/bin/ack && chmod 0755 !#:3
ack installation guide से !#:3
का अर्थ क्या है?का अर्थ क्या है! #: 3?
बैश या zsh !
में इतिहास कमांड इंगित करता है (एक शेबांग लाइन नहीं है जो #!
है, और इसमें बैश या zsh के साथ कुछ भी नहीं है)।
!#
का मतलब अब तक की गई संपूर्ण कमांड लाइन है, और :3
इस मामले में ~/bin/ack
तीसरा शब्द चुनता है।
curl http://beyondgrep.com/ack-2.02-single-file > ~/bin/ack && chmod 0755 ~/bin/ack
भी देखें: http://stackoverflow.com/questions/12885417/unfamiliar-shell-syntax-in-ack-grep-install-script
तो आदेश के बराबर है –