Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## Copyright (c) 2012 by Bash Vi
- ## This code is released under the terms
- ## of the WTFPL (What the Fuck Pulic License) version 2.0
- ## http://sam.zoy.org/wtfpl/
- for line in `ls`
- do
- #echo "DEBUG $line";
- FOLDER=`ls $line | head -1`
- #echo "DEBUG $FOLDER";
- IMAGE=`ls $line/$FOLDER/ | head -1`
- #echo "DEBUG $IMAGE"
- ls $line/$FOLDER/$IMAGE
- gpicview $line/$FOLDER/$IMAGE
- done
Advertisement
Add Comment
Please, Sign In to add comment