Wednesday, November 16, 2011

Copy file to two destinations

With this small script i can copy a file to two destinations.
It works like this:
fcp

Save script als fcp and make it executable with chmod +x fcp

#!/bin/sh
# One Source more Destinations
# Start:: fcp
cp $1 $2 $4 $5
cp $1 $3 $4 $5

1 comment: