Tag Archive: shell script

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 »

Oct 20 2013

Link: Basic Linux Shell Scripting Language : ‘While’ Loops

In the previous article entitled “Basic Linux Shell Scripting Language : Introduction to ‘For’ Loops“, we have observed how a loop works. Loop is nothing but a control flow statement which executes a block of commands repeatedly till certain condition stays true, once the condition becomes false, the loop is terminated. In this article, I …

Continue reading »

Oct 13 2013

Link: Learning Shell Scripting Language: A Guide from Newbies to System Administrator

Linux is built with certain powerful tools, which are unavailable in Windows. One of such important tool is Shell Scripting. Windows however comes with such a tool but as usual it is much weak as compared to it’s Linux Counterpart. Shell scripting/programming makes it possible to execute command(s), piped to get desired output in order …

Continue reading »

Older posts «

%d bloggers like this: