Skip to content

Instantly share code, notes, and snippets.

@VladislavTitov
Last active March 17, 2021 08:16
Show Gist options
  • Save VladislavTitov/7d5f872d55ea95b2fc186835ded71f5f to your computer and use it in GitHub Desktop.
Save VladislavTitov/7d5f872d55ea95b2fc186835ded71f5f to your computer and use it in GitHub Desktop.
#!/bin/bash
filename=$1
dest=$2
echo "`find -path "./*$filename"`" | while read line
do
cp --parents "$line" "$dest"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment