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 | |
# This script uses ssconvert to convert all *.csv files in the current directory into *.xlsx format | |
command -v ssconvert >/dev/null 2>&1 || { echo >&2 "ssconvert is not installed, please install it via apt-get install gnumeric"; exit 1; } | |
find . -maxdepth 1 -name "*.csv" -exec ssconvert {} --export-type=Gnumeric_Excel:xlsx2 \; | |
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 | |
# This script is made to rename default rotated access log files from access.log.1, access.log.2 and | |
# so on, to using timestamp instead of auto increment index (to be access.log.2014102009) | |
# | |
# USAGE: | |
# cd LOGS_DIR && ./access-logs-timestamp.sh | |
FILES=access.log* |
NewerOlder