#!/bin/bash #Veiem com l' if executa el then o el else en funció del #valor ($#) que retorna el rm if rm ~/hola.txt 2> /dev/null then echo "Ho he pogut fer" else echo "No ho he pogut fer" fi