Alumno: Franco Pignanelli 👨🏻💻
Consigna del desafío
- Write a Bash script based on the following requirements:
- Creates 25 empty (0 KB) files. (Hint: Use the touch command.)
- The file names should be <yourName><number>, <yourName><number+1>, <yourName><number+2>, and so on.
- Design the script so that each time you run it, it creates the next batch of 25 files with increasing numbers starting with the last or maximum number that already exists.
- Do not hard code these numbers. You need to generate them by using automation.
- Test the script. Display a long list of the directory and its contents to validate that the script created the expected files.
Use SSH to connect to an Amazon Linux EC2 instance

Resolución
1. Script Bash para crear 25 archivos
- Nos aseguramos de estar en la ubicación home/ec2-user con
pwd
- Creamos el archivo .sh utilizando el comando
touch retobash.sh
- Verificamos que el archivo se haya creado

- Abrimos el archivo utilizando nano con el comando
nano retobash.sh
(Podemos saltearnos el paso anterior porque al usar nano sobre un archivo que no existe se crea uno nuevo vacío)
- Escribimos el código bash que realiza un for que itera 25 veces creando un archivo en cada iteración haciendo uso del comando
touch
El nombre del archivo es francopig$i.txt (donde i es el valor de la variable de control)

- Verifico que se haya guardado bien el código bash utilizando el comando
cat7
