Created
March 28, 2019 08:07
-
-
Save kevanmoothien/eea1bf56efe6e35cfe88695901a9312d to your computer and use it in GitHub Desktop.
Read csv column and copy file to another folder
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
```bash | |
cat annotations.csv|while read line | |
do | |
read -d, col1 <<(echo $line) | |
echo "$col1" | |
cp "./$col1" "./images/$col1" | |
done | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment