Created
          November 7, 2019 12:55 
        
      - 
      
- 
        Save kovalbogdan95/effc622ef1efc5d7940a151431f0d4d8 to your computer and use it in GitHub Desktop. 
    Get run info inside bash script
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| echo | |
| echo "# arguments called with ----> ${@} " | |
| echo "# \$1 ----------------------> $1 " | |
| echo "# \$2 ----------------------> $2 " | |
| echo "# path to me ---------------> ${0} " | |
| echo "# parent path --------------> ${0%/*} " | |
| echo "# my name ------------------> ${0##*/} " | |
| echo | |
| printf 'y\ny\ny\n' | |
| exit | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment