#!/bin/bash for f in scripts/*; do cp -r "$f" /share/scripts/ echo "Copied $f to /share/scripts/" done