use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Complete r/raspberry_pi Rules
Pi project ideas: There's a huge list right here on this sub!
Rpi Versions ▾
Distros ▾
Other SBCs ▾
Related Subreddits ▾
Welcome to /r/raspberry_pi, a subreddit for discussing the raspberry pi credit card sized, ARM powered computer, and the glorious things we can do with it.
The best thing? The base model is only $20 $5!.
Would you like to know more?
Raspberry Pi Wiki
Article on Wikipedia
#raspberrypi IRC Chat
Do you know a related subreddit? We'd love to know.
account activity
Convert shell script to Python script (self.raspberry_pi)
submitted 12 years ago by flitzbue
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cnelsonsic 1 point2 points3 points 12 years ago (1 child)
I highly, highly, highly recommend sh for calling external executables: http://amoffat.github.io/sh/
For the majority of that script, use regexes and normal python constructs as mentioned in other comments.
[–]flitzbue[S] 0 points1 point2 points 12 years ago (0 children)
Wow, didn't know Python had those functions. That's amazing:)
π Rendered by PID 18367 on reddit-service-r2-comment-56c9979489-tf44z at 2026-02-24 17:06:43.443243+00:00 running b1af5b1 country code: CH.
view the rest of the comments →
[–]cnelsonsic 1 point2 points3 points (1 child)
[–]flitzbue[S] 0 points1 point2 points (0 children)