Skip to main content
1 of 3
Stefan M
  • 1.6k
  • 1
  • 12
  • 20
cat file | grep -v '\$' | while read line; do echo "${line}" | sed 's#\(^[0-9]*\)[\ ]*\([0-9\.]*\)#rsync -rvp *.\1.extension root@\2:/path/of/dest#g'; done

Details follow :)

Stefan M
  • 1.6k
  • 1
  • 12
  • 20