#!/bin/sh for folder in ~/tssr/procedures/*; do if [ -d "$folder" ]; then cp "$folder"/procedure*.pdf ./procedures-tssr fi done