Skip to content

Instantly share code, notes, and snippets.

@MinhasKamal
Created August 9, 2016 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MinhasKamal/56f2e318b6be3bf1e8f66e4dfff7409a to your computer and use it in GitHub Desktop.
Save MinhasKamal/56f2e318b6be3bf1e8f66e4dfff7409a to your computer and use it in GitHub Desktop.
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