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 | |
ARCH="$1"; | |
TEXTO="[[${ARCH}]] petrohsW/wikiCommons CC by sa (20181117)" | |
URL_PAG="https://commons.wikimedia.org/wiki/File:${ARCH}" | |
wget ${URL_PAG} -o ${ARCH}.log -O ${ARCH}.html | |
URL_FOTO=$(grep 'div class="fullMedia"' ${ARCH}.html | sed -e "s'.*a href=\"''" -e "s/\" class=\"internal.*//") | |
wget ${URL_FOTO} -o ${ARCH}.2.log |
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 ' | |
* extraerDocuFinalDeScript.bash * | |
DESCRIPCION: Obtiene la documentación descrita al pie del script. | |
La convierte a man y a html con txt2tags | |
USO: extraerDocuFinalDeScript.bash scriptParaExtraerDocu | |
extraerDocuFinalDeScript.bash [-h|-?|--help|--ayuda] [-v] | |
extraerDocuFinalDeScript.bash --docu | |
OPCIONES: -h Ayuda |
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 | |
rm by_vote orphaned.html orphaned.txt huerfanosPopulares.txt; | |
wget https://popcon.debian.org/by_vote | |
wget https://www.debian.org/devel/wnpp/orphaned.html | |
#grep 'bugs.debian.org' orphaned.html | cut -d: -f2 | cut -d\> -f2 | sed -e "s/.*/& /" | head -2 > orphaned.txt | |
grep 'bugs.debian.org' orphaned.html | sed -e "s'.*<li><a href=.https://bugs.debian.org/........' '" -e "s/:.*/ /" > orphaned.txt | |
grep -f orphaned.txt by_vote > huerfanosPopulares.txt |
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 | |
# 270 > | |
grad="$1"; | |
imag="$2"; | |
convert -rotate $grad $imag a${imag} && mv a${imag} $imag |
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: buscaCdrDxl.sh | |
# | |
# USO: buscaCdrDxl.sh [-i lista] [-d dir/dxls] [-s arch_sal] | |
# buscaCdrDxl.sh [-t tipo] [-D num] | |
# buscaCdrDxl.sh [-h|-?|--help] [-v|--version] | |
# |
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 | |
##/usr/bin/sh | |
ayuda () { echo ' | |
#=============================================================================== | |
# SCRIPT: descargaConfiguracion | |
# | |
# USO: descargaConfiguracion.sh [-t pref] [-o sal] [-b bloq] osid | |
# DESCRIPCION: descarga variables de configuraciones desde base de datos | |
# OPCIONES: osid Identificador de la base a la que consultara | |
# -t prefijo Prefijo de la tabla _C_PARAMETROS por omision |
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: * Extraer las plantillas para desarrollo * | |
# | |
# USO: ./extrae_plantilla.bash [-h|-v] | |
# | |
# DESCRIPCION: Se autoextrae las plantillas desde el script | |
# Continene un conjunto de directorios base para desarrollo | |
# |
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: field_attr.sh | |
# | |
# USO: ./field_attr.sh [-f field] [-a attrib] | |
# ./field_attr.sh "field_id=17, attr_id=9" | |
# | |
# DESCRIPCION: Obtiene el correspondiente a field y attributes |
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 | |
BASE=/home/petrohs/Notebooks/Notes/Journal | |
cad=`zenity \ | |
--title="pCal" \ | |
--forms \ | |
--add-entry=Año \ | |
--add-entry=Mes \ | |
--text="Mes a generar"` |
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: _Pprism.sh | |
# | |
# USO: _Pprism.sh | |
# | |
# DESCRIPCION: --- | |
# |
NewerOlder