This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# blogfoto | |
# Pequeño script que cambia la resolución de la imagenes del tamaño original a 800*600. Usa ImageMagick | |
# Además de reducir la calidad de la imagen resultante. | |
# Primero nos aseguramos que la extensión esté en minúsculas y creamos fotoblog | |
rename 's/.JPG/.jpg/' *.JPG | |
mkdir fotoblog | |
#Empezamos el ciclo con las fotos de extensión jpg para reducirlo a 800*600. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Programa en bash que cambia recursivamente la calidad de todos los ficheros | |
# .jpg a una calidad del 80%. | |
func_convertir() | |
{ | |
for Fichero in * | |
do | |
( | |
if [ -d "$Fichero" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Este script genera un backup del directorio | |
#primero imprime en pantalla y luego captura el teclado | |
echo "Ingresa el directorio de origen: " | |
read dir1 | |
#comprime el directorio | |
tar -cvf Dir-Origen.tar $dir1 |
NewerOlder