Tag Archive: shell script

Dec 22 2017

A Bash script to rewrite the "static" IP address in the FreePBX Asterisk SIP Settings when it is changed by your ISP

This post is going to be a bit long because I first need to explain the “why” behind this script, then the script itself and how to test it after installation. Please note that the screenshots below are from earlier versions of FreePBX, and you probably will be using a more modern GUI interface, but …

Continue reading »

Mar 13 2017

Series on Bash Scripts from Like Geeks

Like Geeks recently published an interesting series on writing Bash shell scripts: Today we are going to talk about bash script or shell scripting actually, they are called shell scripts in general but we are going to call them bash scripts because we are going to use bash among the other Linux shells. There are …

Continue reading »

Dec 29 2016

Your Own Linux..! series on Linux / Unix Shell (Bash) Scripting

Your Own Linux..! recently published a multi-part series on Unix/Linux shell scripting, that would be useful to anyone desiring to write a bash script. The articles are: Introduction – Linux / Unix Shell (Bash) Scripting Bash Scripting Variables – Environment and Special Shell Variables Bash Scripting – Arithmetic, Logical, Relational and Bitwise Operators Bash Scripting …

Continue reading »

Aug 31 2015

Linux/UNIX: Bash Read a File Line By Line

How do I read a file line by line under a Linux or UNIX-like system using KSH or BASH shell? You can use while..do..done bash loop to read file line by line on a Linux, OSX, *BSD, or Unix-like system. Source: Linux/UNIX: Bash Read a File Line By Line (nixCraft)

Feb 16 2015

Link: Add tack e x on your bash shebang | #!/bin/bash -ex

Bash scripts can use various options on the shebang (#!/bin/bash). A more common one is: ‘#!/bin/bash -ex’ Here is the scoop! Full article here: Add tack e x on your bash shebang | #!/bin/bash -ex (scottlinux.com)

Dec 12 2014

Link: Working with Arrays in Linux Shell Scripting – Part 8

We cannot imagine a programming language without the concept of arrays. It doesn’t matter how they are implemented among various languages. Instead arrays help us in consolidating data, similar or different, under one symbolic name. Here as we are concerned about shell scripting, this article will help you in playing around with some shell scripts …

Continue reading »

Nov 12 2014

Link: Understanding & Learning Basic Shell Scripting and Linux Filesystem Troubleshooting

The Linux Foundation launched the LFCS certification (Linux Foundation Certified Sysadmin), a brand new initiative whose purpose is to allow individuals everywhere (and anywhere) to get certified in basic to intermediate operational support for Linux systems, which includes supporting running systems and services, along with overall monitoring and analysis, plus smart decision-making when it comes …

Continue reading »

Jul 28 2014

Link: Backtick (`) symbol in Linux Shell Scripting

One of the most useful features of shell scripts is the lowly back quote character, usually called the backtick (`) in the Linux world. Be careful—this is not the normal single quotation mark character you are used to using for strings. Because it is not used very often outside of shell scripts, you may not …

Continue reading »

Jun 03 2014

Link: An Insight of Linux “Variables” in Shell Scripting Language

We already have written a series of articles on Linux Shell Scripting which was warm welcomed that time and it was much relevant even now. Here is the link to the collection of articles on shell scripting. Learn Linux Shell Scripting Here in this article we will see the variables, its execution and its implementation …

Continue reading »

Jan 01 2014

Link: 25+ Awesome Linux/Unix command chaining examples

Today we will learn how to use different command chaining operators available for us in an easy way. Command chaining operators & –Sends process background (so we can run multiple process parallel) ; –Run multiple commands in one run, sequentially. \ –To type larger command in multiple lines && –Logical AND operator || –Logical OR …

Continue reading »

Older posts «

%d bloggers like this: