Difference between revisions of "$1"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
  
  
 +
https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash
 
  if [ -n "$1" ]; then
 
  if [ -n "$1" ]; then
 
   echo "You supplied the first parameter!"
 
   echo "You supplied the first parameter!"

Revision as of 19:21, 9 August 2021

Advertising: