Skip to content

Instantly share code, notes, and snippets.

View angelbladex's full-sized avatar

Luis García angelbladex

View GitHub Profile
@angelbladex
angelbladex / strikethroughText.sh
Created October 27, 2013 20:35
Este script tacha el texto recibido por parámetro
#!/bin/bash
echo $@ | sed $"s/./&\xCC\xB6/g"
@angelbladex
angelbladex / colorear.sh
Created October 22, 2013 15:36
Script para convertir algún código en html con resaltado de colores, usando el paquete highlight
#!/bin/bash
if [[ ! -n "$1" ]];
then
echo "Nombre de archivo no ingresado"
exit
fi
@angelbladex
angelbladex / aMinusculas.sh
Created October 22, 2013 15:34
Script para pasar a minúsculas, todo lo que recibe
#!/bin/bash
#Convierte a minúsculas todos los parámetros que recibe
echo $@ | awk '{print tolower($0)}'
@angelbladex
angelbladex / aMayusculas.sh
Created October 22, 2013 15:32
Script para pasar a mayúsculas, todo lo que recibe
#!/bin/bash
#Convierte a mayúsculas todos los parámetros que recibe
echo $@ | awk '{print toupper($0)}'
@angelbladex
angelbladex / extract
Last active September 29, 2025 13:01 — forked from guerrerocarlos/.bashrc
Un simple script en Bash para facilitar extraer contenido de algunos comprimidos -- An simple script on Bash for extract content from some compressed file
#! /bin/bash
##This can be on /bin/ or /usr/bin or any site of your $PATH
####Based on https://gist.github.com/guerrerocarlos/3977495
# Función de ayuda
show_help() {
echo "Uso: extract [OPCIONES] [ARCHIVO] [DESTINO]"
echo "Extrae archivos comprimidos de varios formatos"
echo ""
echo "Opciones:"