Search Results for: awk

AWK scripting: What is an AWK and how to use it?

This is our first post on AWK, in this we will see some of the basic stuff of AWK like history, advantages syntax and how it works etc.1. A brief history about AWK2. Advantages and disadvantages of AWK3. AWK syntax4. How AWK works? AWK is a command/tool available in all the Linux/Unix flavors to do text filtering, manipulation etc. This tool is mainly meant for processing text files and reporting. AWK can be treated as a programming language due to it’s capabilities such as Arithmetic operations, Binary operations, conditions, loops, functions etc. AWK is an interpreter language. This tool/programming language was developed in 1977 by Alfred V. Aho, Peter J. Weinberger, Brian W. Kernighan. AWK got it’s name from it’s creates family names. Due to it’s capabilities AWK earned it’s nick name as “Awk the Swiss army knife of the Unix toolkit”. This is true because it can do text processing with ease when compared to other text parsing tools available in Linux/Unix. Below are some advantages and disadvantages of AWK tool which I come across when using it. AWK Advantages Validate data Managing small db files Generating reports Parsing command outputs Parsing log files Can parse more than one file at a time. AWK Disadvantages Many flavors are there: awk, nawk, gawk,mawk, tawk which makes portability issue. Cannot be full-pledge scripting language like PERL, Python and Ruby. Useful only for data processing...

Read More

Introduction to the aptitude package manager for Ubuntu

Introduction In our ongoing series of articles covering various software management tools, we have already covered, dpkg,apt-get and apt. In this article, we’ll cover the aptitude tool for package management on our Ubuntu 16.04 system. The aptitude command is a very useful, text-based utility for managing packages on your server.  Some administrators use it as an alternative to apt.  The aptitude package management software provides a command line utility named aptitude but a powerful text user interface as well. The TUI displays a list of software packages and allows the user to interactively pick packages to install or remove. The aptitude text user interface is based on the curses computer terminal library, with which it provides an interface that incorporates some elements commonly seen in graphical user interfaces (GUIs). Given below are some of the useful features of aptitude: a mutt-like syntax for matching packages in a flexible manner mark packages as “automatically installed” or “manually installed” so that packages can be auto-removed when no longer required colorful preview of actions about to be taken dselect-like persistence of user actions the ability to retrieve and display the Debian changelog of most packages AptCLI-like (= apt-get + apt-cache) command line mode Score-based and (usually) smarter dependency resolver than apt-get   Installing aptitude: The aptitude software is not installed on the system by default. We can install it by using the...

Read More

Nagios installation on Centos 7 part 2 (installing plugins and NRPE)

Introduction In our previews article we walked you through installing nagios core on a Centos 7 system. In this article we will explain how to install Nagios plugins and the Nagios Remote Plugin Executor (NRPE) package. How does Nagios work? Nagios core runs from a central server which holds the configuration files. It runs active checks to monitor the state of services like HTTP and SSH, check if the server is up via ICMP and also monitor resource consumption like in the form of CPU load, memory utilization etc. The core server has a huge library of plugins and much of the functionality and flexibility of Nagios is derived from the use of these plugins. What are Nagios plugins? Plugins are compiled executable or scripts (Perl scripts, shell scripts, etc.) that can be run from a command line to check the status or a host or service.  Nagios uses the results from plugins to determine the current status of hosts and services on your network. Nagios will execute a plugin whenever there is a need to check the status of a service or host.  The plugin does something to perform the check and then simply returns the results to Nagios. It will process the results that it receives from the plugin and take any necessary actions. Installing Nagios plugins The plugins which provide the most commonly needed and used monitoring...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.