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/sh | |
nul="$1" | |
cad="$2" | |
arc="$3" | |
for num in `grep -n "$cad" $arc | cut -d: -f1` | |
do | |
numm=`expr $num - $nul` | |
sed -n "${numm},${num}p" $arc |
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 | |
ayuda () { echo ' | |
#=============================================================================== | |
# USO: _lock.sh | |
# | |
# DESCRIPCION: Parametros personalizados para bloquer pantalla | |
# OPCIONES: --- | |
# DEPENDENCIAS: | |
# xscreensaver | |
# xset |
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/sh | |
ayuda() { echo ' | |
#=============================================================================== | |
# SCRIPT: * Fechas Invalidas EMMC * | |
# DESCRIPCION: Detecta formato invalido en fechas del archivo EMMC | |
# java.lang.StringIndexOutOfBoundsException: String index out of range: 14 | |
# en nodo PrepareSIGTv2. | |
# Separa los cdrs para poder reinyectar el archivo | |
# | |
# USO: fechasInvEMMC.sh EMMC2000000000.gz |
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 | |
#Encontrar el mim faltante | |
#Ponerse en el directorio internal | |
#Buscar los archivos dat (quitar la ext, ordenarlos y guardarlos) | |
find . -name "*dat" | sed -e "s/.dat//" | sort -n > dat | |
#Buscar los archivos mim (quitar la ext, ordenarlos y guardarlos) | |
find . -name "*mim" | sed -e "s/.mim//" | sort -n > mim |
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/dash | |
accion=`zenity --list --column A --column "acción" TRUE apagar FALSE reiniciar --radiolist --title "¿Apagar?" --text "Seleccionar la acción"` | |
if [ "$accion" = "apagar" ] | |
then | |
gksudo -m "shutdown -h now" "shutdown -h now" | |
elif [ "$accion" = "reiniciar" ] | |
then | |
gksudo -m "reboot" "reboot" |
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 | |
uriM=`cat bookmarksPetrohs.json | jid "${1}"`; | |
uriM=`echo $uriM | sed -e "s/^\"//" -e "s/\"$//"` | |
echo "-$uriM-"; | |
if [[ "$uriM" == "null" ]]; then exit; fi; | |
if [[ "$uriM" =~ ^"{" ]]; then exit; fi; | |
/opt/firefox/firefox "${uriM}" |
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 | |
cd /home/petrohs/PetrOHS/.conf/ | |
PERFIL=`(ls -1 randr-tlatzilinitepoztli_*.sh; echo arandr) | zenity --list --title="xrandr perfil" --text="¿Con qué perfil quieres ejecutar?" --column Perfiles 2>/dev/null`; | |
PATH=$PATH:/home/petrohs/PetrOHS/.conf | |
$PERFIL |
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 | |
#=============================================================================== | |
# | |
# SCRIPT: traeCDR.sh | |
# | |
# USO: ./traeCDR.sh | |
# | |
# DESCRIPCION: --- | |
# | |
# OPCIONES: --- |
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 | |
ayuda () { echo ' | |
#================================================================================================================= | |
# | |
# SCRIPT: trasnFTP.sh | |
# | |
# USO: ./trasnFTP.sh [-s servidor] [-c mput|mget] [-d dirDestino] [-o dirOrig] archivo | |
# ./trasnFTP.sh [-u usuario -i ip -p password] [-c mput|mget] [-d dirDestino] [-o dirOrig] archivo | |
# | |
# DESCRIPCION: Envia o recibe archivos por ftp |
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 | |
ayuda() { echo ' | |
* carga gist * | |
DESCRIPCION: Carga scripts al gist | |
USO: cargaGist /ruta/archivo.bash "descripcion del proceso" | |
cargaGist [-h|-?|--help|--ayuda] [-v] | |
OPCIONES: /ruta Ruta y nombre del script | |
desc Descripcion breve del proceso | |
-h Ayuda |