View Single Post
Old 03-03-2012, 02:43 PM   #5
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Updated first post in this thread to gmpaint-1.2.

Replaced "cut" subprocess calls with shell string processing (actually "set" command-line parsing used to parse output lines from hexdump).

Replaced wrapper filter function with parentheses around entire subprocess loop, and added subprocess exit status check.

It is "more better smaller faster simpler", and that is a "good thing" in my book!

I hope you learn something from this -- I know *I* did!

Enjoy!


P.S. I left the original gmpaint-1.0.gz file in the dowload links in the first post above, in case you want to compare the original and latest versions of the script, to see what I was talking about above.

Last edited by geekmaster; 03-03-2012 at 03:26 PM.
geekmaster is offline   Reply With Quote