Created
August 9, 2016 09:05
-
-
Save MinhasKamal/56f2e318b6be3bf1e8f66e4dfff7409a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
DATA_ROOT=/home/root/directory/path/ | |
for root in */ ; do | |
for dir in "$root"* ; do | |
i=0 | |
for file in "$dir"/* ; do | |
printf "$DATA_ROOT$file $i\n" >> rawimagelabel.txt | |
#echo "$(pwd)/$file $i" | |
i=$((i+1)) | |
done | |
done | |
done | |
echo "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment