Created
August 2, 2021 16:31
-
-
Save gabikat/780627d267c669cf4c681d199b5ab25b to your computer and use it in GitHub Desktop.
Simple bash script to copy specific files or directories into another directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# retrieves all directories from subs2 ending in -T2398 to copy into the directory 'subs' | |
for f in subs2/*-T2398 | |
do | |
cp -r $f subs | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment