#! /bin/bash # Last edited on 2010-05-09 19:03:51 by stolfilocal usage="${0##*/} {FILE}... {REMOTEDIR}" # Copies {FILE}... to "stolfi@manaus.ic.unicamp.br:{REMOTEDIR}/" # The {FILE} names must not contain embedded blanks # or special chars like '*,[]{}?' args=( "$@" ) n1=$(( ${#args[@]} - 1 )) args[${n1}]="stolfi@manaus.ic.unicamp.br:${args[${n1}]}" # echo "${args[@]}" scp -p "${args[@]}"