ShellCheck – check basic POSIX shell script errors

2015-08-03 1 min read Bash Fedora

Here is description of the tool:

Description : The goals of ShellCheck are:
  • To point out and clarify typical beginner’s syntax issues,
    :   that causes a shell to give cryptic error messages.
  • To point out and clarify typical intermediate level semantic
    :   problems, that causes a shell to behave strangely and
    :   counter-intuitively.
  • To point out subtle caveats, corner cases and pitfalls, that may
    :   cause an advanced user’s otherwise working script to fail under
    :   future circumstances.

To install

Continue reading

evvsubst – substitute variables in text in shell

2015-07-09 1 min read Fedora Linux

First you need to install gettext, which by the way might be already installed, however you can install with

dnf install gettext

Details of the package:

Name        : gettext
Arch        : x86_64
Epoch       : 0
Version     : 0.19.4
Release     : 4.fc22
Size        : 4.6 M
Repo        : @System
Summary     : GNU libraries and utilities for producing multi-lingual messages
URL         : http://www.gnu.org/software/gettext/
License     : GPLv3+ and LGPLv2+
Description : The GNU gettext package provides a set of tools and documentation for
producing multi-lingual messages in programs. Tools include a set of
conventions about how programs should be written to support message
catalogs, a directory and file naming organization for the message
catalogs, a runtime library which supports the retrieval of translated
messages, and stand-alone programs for handling the translatable and
the already translated strings. Gettext provides an easy to use
library and tools for creating, using, and modifying natural language
catalogs and is a powerful and simple method for internationalizing
programs.

Usage examples:

Continue reading

ionice – renice you IO activity for the process.

2015-04-13 1 min read Learning

ionice is utility provided by the package util-linux. Description of util-linux:

Description : The util-linux package contains a large variety of low-level system
utilities that are necessary for a Linux system to function. Among
others, Util-linux contains the fdisk configuration tool and the login
program.

 

With the help of this utility, you can set the scheduler priority for your IO scheduling upto RealTime, but be careful that can make other process sluggish. Example use:

Continue reading
Older posts Newer posts