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
#!/usr/bin/env bash | |
# --- | |
#!/bin/bash -x | |
echo -e "### WELCOME TO $(basename $0)\n" | |
if [[ -z ${DEST_DIR} ]] | |
then | |
TIMESTAMP=$(date +%s) | |
DEST_DIR=${TIMESTAMP} |
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
#!/usr/bin/env bash | |
# --- | |
#!/bin/bash -x | |
echo -e "### WELCOME TO $0\n" | |
if [[ -z ${DEST_DIR} ]] | |
then | |
TIMESTAMP=$(date +%s) | |
echo -e "Setting destination dir as ${TIMESTAMP}" |
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
#!/usr/bin/env bash | |
setvars() | |
{ | |
ORIGIN_PATH="." | |
DESTIN_PATH="." | |
Full_File_Path="." | |
File_Year="0001" | |
File_Month="01" |
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
#!/usr/bin/env python3 | |
### WARNING CODE IS INCOMPLETE | |
# NEED TO PUT ARGUMENT PARSING ON A TRY/CATCH STRUCTURE | |
# Sortfiles is a simple script that reads the creation date of a JPG or CR2 file, creates a directory structure of Year/Month/Day and then moves it to this destation directory. | |
# Libs | |
import os |
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 | |
# fluxcontrol.sh | |
# Script para mostrar como se controla o fluxo com base no código de erro de outro script | |
# Autor: Eduardo Lisboa <[email protected]> | |
# Chame o script 1 normalmente: | |
# $ script1.sh | |
# Dentro dele, ao chamar o script2, utilize o seguinte controle: | |
if script2.sh | |
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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA256 | |
11111 a | |
11112 aa | |
11113 aaa | |
11114 aaaa | |
11115 ab | |
11116 aba | |
11121 abaco |
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
### Keybase proof | |
I hereby claim: | |
* I am elisboa on github. | |
* I am elisboa (https://keybase.io/elisboa) on keybase. | |
* I have a public key ASBae1y0L7QLHVyyxKSiV2BnjfEg6levcx9KW-wLm9vGFQo | |
To claim this, I am signing this object: |