#!/bin/bash nargs=3 # Arguments of the script: # time step # number parts # number of syncio files wanted ### Function die called when there is a problem function die() { echo -e "${1}" exit 1 } ##################################################################### ### End of functions - Beginning of the script ##################################################################### ### Check that user entered proper number of args if [ "${#}" -lt "$nargs" ] || [ "$1" == "-h" ]; then die "\n Check usage: \n $0\n\n \$1: