Back to Top

scripting

Shell Scripting vs Programming, part 3 - Special Things

Oct 22, 2013 - Tags:

When you talk about shell programming, or any kind of programming for that matter, you are going to deal with variables on different levels. In the shell, you have the built-in variables you saw earlier, and you can assign variables as well. For instance, without writing a script, type this line at your shell (command-line) prompt:

   hours=24

Then type this:

   echo "There are $hours hours in a typical day"

The system responds with this:

Shell Scripting vs Programming - Introduction

Oct 08, 2013 - Tags:

It's time for a new series focusing on the Linux shell. In my last series, I taught you how to work in the shell to manipulate files and directories, execute commands, find things, and work with a powerful editor. This time around, I'm going to talk about programming in the shell. What I want to do is get you comfortable with the idea of writing small, useful scripts to do your job as an administrator of your Linux domain, no matter how small or large. To that end, I will concentrate on bash.

Comments

Subscribe to scripting
The Original Cooking with Linux
 
Appearing monthly, 3rd Thursday, on Computer America
Appearing every 3rd Thurday of every month on the Computer America radio show.
  • RT : Brilliant response from to KPFA's ridiculous cancellation of his lecture Aug 9. https://t.co/igBZpaLVd9 12 hours 53 min ago
  • It's July 23, and I am at Chapters. Thus is their holiday display. Too soon? https://t.co/qk1m9NnNsf 17 hours 42 sec ago
  • On the upside, the Internet has a potentially perfect memory. On the downside, the Internet has a potentially perfect memory. 2 days 16 hours ago
  • So, what you're saying, if I read this correctly, is that the GNOME Tweak Tool's name has been tweaked. 2 days 20 hours ago
  • Just finished 's Revisionist History, King of Tears. If you aren't crying by the end, I can't help you. https://t.co/Qfc4fC6MYo 2 days 21 hours ago