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.
  • We're doing a Clash Royale tournament. Come join.: https://t.co/WfaXVSMqmA via 16 hours 19 min ago
  • Take a look at my live stream: 'We're doing a Clash Royale tournament. Come join. ' at https://t.co/y7Kfj3LVnV 18 hours 16 min ago
  • So, they have this strange weird device to video observe you with. Not sure what it is; it's… https://t.co/CdZTKFPvDu 22 hours 4 min ago
  • RT : Googling anything about using a Raspberry Pi: First result: You can't do that because the Pi doesn't [something].… https://t.co/u9Ad66r2AM 1 day 43 min ago
  • I don't believe that laws ensure good behaviour, but they do guide and encourage good behaviour in society. The spe… https://t.co/5iEx9eb5o3 1 day 44 min ago