Add ISO/examenes/tema10

This commit is contained in:
Nicolás A. Ortega Froysa 2022-04-08 17:59:49 +02:00
parent 2f1801af31
commit a0a869564b
8 changed files with 8 additions and 0 deletions

View File

@ -1,2 +1,3 @@
#!/bin/bash #!/bin/bash
echo "Se han introducido $# argumentos." echo "Se han introducido $# argumentos."

View File

@ -1,2 +1,3 @@
#!/bin/bash #!/bin/bash
echo "Argumento 1: $1" echo "Argumento 1: $1"

View File

@ -1,2 +1,3 @@
#!/bin/bash #!/bin/bash
echo "Argumento 2: $2" echo "Argumento 2: $2"

View File

@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
PROD=$(expr $1 \* $2) PROD=$(expr $1 \* $2)
echo "Producto $1*$2=$PROD" echo "Producto $1*$2=$PROD"

View File

@ -7,3 +7,4 @@ then
fi fi
for i in $@; do echo "$i"; done for i in $@; do echo "$i"; done

View File

@ -5,3 +5,4 @@ then
else else
echo "No hay argumentos." echo "No hay argumentos."
fi fi

View File

@ -2,3 +2,4 @@
mkdir -p ~/dir1 ~/dir3/dir21 mkdir -p ~/dir1 ~/dir3/dir21
mkdir -p ~/dir4/dir31 mkdir -p ~/dir4/dir31
mkdir ~/dir2 mkdir ~/dir2

View File

@ -16,3 +16,4 @@ cp -r /bin/u* /home/usuario/enlacedir1/
chmod a-w /home/usuario chmod a-w /home/usuario
# h) # h)
cat /etc/motd cat /etc/motd