October 29, 2004

Random Photos

Filed under: Tech-Stuff — Chris @ 9:42 am

I added a random photo to the top of the blog. Created a cool little script to go thru the directories (for $I in *) and then gawk the data I wanted and put it into the random photos file.

Command line rocks.

for filename in *; do ls $filename |cut -f 1 -d . | uniq |grep -v album |grep -v photos |grep -v serial | gawk ‘{print “‘$filename’” “/” $NF}’; done > /myfile.txt

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .