Last active
January 23, 2019 07:38
-
-
Save withattribution/865650687fed8534c4ea402c4ff96b46 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
| Easy Seated Pose | |
| Seated Thunderbolt Pose | |
| Seated Mountain Pose | |
| Seated Spinal Twist Pose | |
| Seated Side Bend Pose | |
| Child’s Pose | |
| Table Top Pose | |
| Cow Pose | |
| Cat Pose | |
| Balancing Table Pose | |
| Thread the Needle Pose | |
| Standing Pose | |
| Standing Backbend Pose | |
| Standing Forward Bend Pose | |
| Standing Half Forward Bend Pose | |
| Twisted Standing Forward Bend Pose | |
| Chair Pose | |
| Downward-Facing Dog Pose | |
| Plank Pose | |
| Four-Limbed Staff Pose | |
| Eight Limbed Pose | |
| Upward-Facing Dog | |
| Cobra Pose | |
| Three Legged Dog Pose | |
| Downward-Facing Dog Knee to Nose Pose | |
| Wild Thing Pose | |
| Side Plank Pose | |
| Low Lunge Pose | |
| Revolved Low Lunge Pose | |
| Half Split or Half Monkey Pose | |
| Front Split or Monkey Pose | |
| Wide-Legged Forward Bend | |
| Wide-Legged Forward Bend Twist Pose | |
| Goddess Pose | |
| Crescent Lunge or High Lunge Pose | |
| Revolved Crescent Lunge Pose | |
| Pyramid Pose | |
| Triangle Pose | |
| Revolve Triangle Pose | |
| Warrior I Pose | |
| Warrior II Pose | |
| Warrior III Pose | |
| Reverse Warrior Pose | |
| Humble Warrior Pose | |
| Extended Side Angle Pose | |
| Bound Extended Side Angle Pose | |
| Revolved Extended Side Angle Pose | |
| Tree Pose | |
| Eagle Pose | |
| Standing Split Pose | |
| Half Moon Pose | |
| Revolved Half Moon Pose | |
| Lord of the Dance Pose | |
| Bird of Paradise Pose | |
| Dolphin Pose | |
| Extended Puppy Pose | |
| Sphinx Pose | |
| King Cobra Pose | |
| Locust Pose | |
| Bow Pose | |
| Camel Pose | |
| Garland Pose | |
| Crow Pose | |
| Lizard Pose | |
| Flying Split Pose | |
| Half Pigeon or Sleeping One-Legged King Pigeon Pose | |
| Lord of the Fishes Pose | |
| Half Lord of the Fishes Pose | |
| Staff Pose | |
| Seated Forward Bend Pose | |
| Boat Pose | |
| Seated Head to Knee Pose | |
| Revolved Head to Knee Pose | |
| Compass Pose | |
| Seated Wide-Legged Forward Bend Pose | |
| Tortoise Pose | |
| Bound Angle Pose | |
| Fire Log Pose | |
| Bridge Pose | |
| Full Wheel Pose | |
| Fish Pose | |
| Shoulder Stand | |
| Plough Pose | |
| Head Stand | |
| Knee to Chest Pose | |
| Supine Twist Pose | |
| Happy Baby or Dead Bug Pose | |
| Prone Pose | |
| Corpse Pose | |
| Lotus Pose |
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
| #!/bin/bash | |
| OLDIFS=$IFS | |
| IFS=$'\n' | |
| counter=1 | |
| mkdir ./asanalist | |
| for F in $(cat ./asanalist.txt) ; do | |
| echo $F $counter | |
| name="./asanalist/$counter $F" | |
| mkdir $name | |
| ((counter++)) | |
| done | |
| IFS=$OLDIFS |
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
| #!/bin/bash | |
| function sortAdded(){ | |
| OLDIFS=$IFS | |
| IFS=$'\n' | |
| counter=0 | |
| ending="" | |
| for F in $(mdls -name kMDItemFSName -name kMDItemDateAdded -raw ${1}/* | \ | |
| xargs -0 -I {} echo {} | \ | |
| sed 'N;s/\n/ /' | \ | |
| sort) ; do | |
| # strip filename from sort | |
| fname=$( echo $F | sed 's/.*\( \)/\1/') | |
| # strip spaces from beginning of filename | |
| fname=$(echo $fname | sed -e 's/^[[:space:]]*//') | |
| # echo $fname | |
| if [[ $counter = 0 ]] ; then | |
| ending="_MAIN" | |
| else | |
| ending="_VARIATION_$counter" | |
| fi | |
| # parameter expansion input variable to only include current dir | |
| toname="${1##*/}${ending}.JPG" | |
| # mv as rename in place | |
| mv "${1}/${fname}" "${1}/${toname}" | |
| ((counter++)) | |
| done | |
| IFS=$OLDIFS | |
| } | |
| function testit() { | |
| echo ${1##*/} | |
| } | |
| function traverse(){ | |
| find . -mindepth 2 -type d -print0 | while IFS= read -r -d '' file | |
| do | |
| sortAdded "${file}" | |
| done | |
| } | |
| traverse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment