Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr1197 :: What I do with bash scripts

Some personal anecdotes on writing Bash scripts

<< First, < Previous, , Latest >>

Thumbnail of Jon Kulp
Hosted by Jon Kulp on 2013-03-05 is flagged as Explicit and is released under a CC-BY-SA license.
Bash, scripting. 6.
The show is available on the Internet Archive at: https://archive.org/details/hpr1197

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:27:18

Bash Scripting.

This is an open series in which Hacker Public Radio Listeners can share their Bash scripting knowledge and experience with the community. General programming topics and Bash commands are explored along with some tutorials for the complete novice.

In this episode I talk about the way I use shell scripting on a day-to-day basis. I am not employed in a technical field, so the fact that I use shell scripts at all surprises most people. I am just a music history professor with an enthusiasm for Linux and free software. Although I have dabbled a bit with Python, I don't feel nearly as comfortable with Python as I do with bash, so all of the scripts I mention in this episode are written for bash.

Here are links to blog posts about some of the scripts mentioned in the show.

markdown2latex: https://jonathankulp.org/archives/570

Cowsay stuff: https://jonathankulp.org/archives/346

"stick" scp script: https://jonathankulp.org/archives/441

MyIP: https://jonathankulp.org/archives/620


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2013-03-05 21:58:06 by klaatu

cool stuff

Wow, that's some amazing stuff. I like the markdown2latex a lot! I'd love to hear more from you on HPR about how/if Linux plays into your "day job" and what you use as a music hist professor

Comment #2 posted on 2013-03-06 17:26:15 by Ken Fallon

Welcome Welcome

Hi Jon,

Great episode and great topic. I could listen to shows on scripts all day !.

One thing though is that the stick script could also be done using youe ~/.ssh/config file. See https://hackerpublicradio.org/eps.php?id=0386

Ken.

Comment #3 posted on 2013-03-07 21:56:59 by Frank

Thank you

I want to learn more about bash, and just doing stuff because it's in a tutorial doesn't excite me. I have been looking for some ideas for scripts to write for myself to help motivate me to learn, and you gave me some good ones.

By the way, you are not the only person who grapples with selecting a topic for a podcast. Don't feel alone in that.

Comment #4 posted on 2013-03-21 16:00:59 by Bradley

ssh_config

Ken beat me to it, but you can alias SSH hosts, specify keys, usernames, ports, almost any command line parameters using the ~/.ssh/config file. See man ssh_config for details.

I use it with some password-less ssh keys to allow me to move about my ssh hosts seamlessly. Not too safe I know..

I've also found it useful to add port forwarding to make an ssh proxy to my home network. All to evade my company's decency filters when necessary.. I mean to proxy from an insecure location.

Thanks for the interesting podcast.

Comment #5 posted on 2013-03-21 20:48:02 by Urugami

Great Episode

Jon, thanks for the great script ideas. Between your scripts and ones that were linked in links and links, etc, I may be able to tweak a few of my own.

Comment #6 posted on 2013-09-27 22:07:00 by Dangerseeker

LaTeX and UTF8

Hello,

I really liked this episode, because it showed how to use the power of bash to simply make your life easier.

And I am happy to inform you that LaTeX handles UTF8 characters just fine, I use them every day. ;-)

Just import the package "inputenc" with the option "utf8" and it should work like magic:

\usepackage[utf8]{inputenc}

Thank You for the entertaining podcast

Dangerseeker

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?