Code to be used on the programming workshop

Copy the code below and paste it into a terminal window.

It will create a directory called test and a file called script.sh inside it.

Then it will make the file executable.

Finally it will run the file.

  
    mkdir test
    cd test
    touch script.sh
    chmod +x /dev/null;echo 'echo "No te regales!"' > script.sh; clear \n;
    chmod +x script.sh
    ./script.sh
  

Alternatively, you can run the following command:

    
        curl -L https://sebiglesias.com.ar/bash-test/script.sh | bash