Did You Know?
Ask a Question

We are pleased to announce the Launch of our New Section "TecMint Ask"

Archive : Bash Shell

RSS feed

Deeper into Function Complexities with Shell Scripting – Part VII

Deeper into Function Complexities with Shell Scripting – Part VII
My previous article on “Understanding and Writing functions in Shell Scripts” might have given you a basic idea on how to write functions under shell scripts. Now it is time to get deeper into functional features like the usage of local variables and recursion. Function Complexities with Shell Scripting Local Variables What makes a variable local? It depends on that particular block where the variable is declared. A variable declared as local...
Filed in: Bash Shell

Understanding and Writing functions in Shell Scripts – Part VI

Understanding and Writing functions in Shell Scripts – Part VI
Functions play an important role in any programming language. Like many real programming languages, bash has functions which are used with limited implementation. Understanding Linux Shell Script Functions What are functions? In programming, functions are named sections of a program that performs a specific task. In this sense, a function is a type of procedure or routine. When a function is called the program leaves the current section of code...
Filed in: Bash Shell

Accessing Clipboard Contents Across Multiple Instances of Vim from Terminal

Accessing Clipboard Contents Across Multiple Instances of Vim from Terminal
Vim (Vi IMproved) is one of the most favourite text editors among programmers. It has its own specialities in performing different operations with short hand commands. Accessing Clipboard Contents from Vim For example, to copy the highlighted text we use the ‘y‘ command and ‘x‘ to cut the same. But, by default vim (and not gVim) clipboard contents cannot be accessed after closing vim instances. Vim uses the ‘+‘...
Filed in: Bash Shell

Zenity – Creates Graphical (GTK+) Dialog Boxes in Command-line and Shell Scripts

Zenity – Creates Graphical (GTK+) Dialog Boxes in Command-line and Shell Scripts
GNU Linux, the operating system built on very powerful Kernel called Linux. Linux is famous for its command Line operations. With the invent of Linux in day-to-day and Desktop computing, nix remains no more biased towards command-Line, it is equally Graphical and developing Graphical application remains no more a difficult task. Zenity Display Graphical Boxes Here in this article we will be discussing creation and execution of simple Graphical...
Filed in: Bash Shell, Open Source

rbash – A Restricted Bash Shell Explained with Practical Examples

rbash – A Restricted Bash Shell Explained with Practical Examples
Linux Shell is one of the most fascinating and powerful GNU/Linux powered tool. All the application, including X, is built over shell and Linux shell is so powerful that the whole Linux system can be controlled precisely, using it. The other aspect of Linux shell is that, it can be potentially harmful, when you executed a system command, without knowing its consequence or unknowingly. Restricted Bash Shell Being an ignorant user. For this purpose...
Filed in: Bash Shell

10 Useful Chaining Operators in Linux with Practical Examples

10 Useful Chaining Operators in Linux with Practical Examples
Chaining of Linux commands means, combining several commands and make them execute based upon the behaviour of operator used in between them. Chaining of commands in Linux, is something like you are writing short shell scripts at the shell itself, and executing them from the terminal directly. Chaining makes it possible to automate the process. Moreover, an unattended machine can function in a much systematic way with the help of chaining operators. 10...

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

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 to automate day-to-day usages. In-fact automating these day-to-day task on server is an important task, system...
Filed in: Bash Shell

Calculating Mathematical Expressions in Shell Scripting Language – Part V

Calculating Mathematical Expressions in Shell Scripting Language – Part V
You People would be feeling comfortable, understanding Shell Scripts and writing them fluently, as per your need. This is the last post of this tutorial series, where we will be carrying out a bit complex Mathematical Operations using scripting language. The last four articles of Shell Scripting series which are chronologically. Learn Shell Scripting Part – V Understand Basic Linux Shell Scripting Language Tips – Part I 5 Shell Scripts...
Filed in: Bash Shell
© 2012-2013 All Rights Reserved.