unix - Access a variable in a bash script -


बाश कमांड लाइन में, मैं myPath = / home / user / dir को एक चर सेट करता हूं। मैंने एक स्क्रिप्ट बनाई जिसमें मैंने $ myPath को प्रतिध्वनित किया लेकिन यह काम करने के लिए प्रतीत नहीं होता। यह कुछ भी नहीं छिपाना स्क्रिप्ट में myPath चर का उपयोग करने के लिए मैं क्या कर सकता हूँ। अगर मैं कमांड में $ myopath लिखता हूं, तो यह काम करता है, लेकिन स्क्रिप्ट में नहीं।

कोशिश करें < / P>

  निर्यात myPath = / home / user / dir  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -