HowTo : Find The Length Of a String or Variable in Bash

This short note shows how to find out the length of a string from the Linux command line, how to count the lengths of each line in a file and how to get the length of a string stored in a variable in Bash and then assign that calculated number of characters to another variable.

Add Character to the Beginning or to the End of Each Line using AWK and SED

From the following article, you'll learn how to add characters to the beginning or to the end of each line in Bash.

It's very easy to append any text, like prefix or suffix, before and after each line, using such Linux command-line editors like SED or AWK.

HowTo : Find Out Top Processes By Memory Usage In Linux

How do i find out top processes by memory (RAM and swap) usage from the Linux command line.

Printing Specific Columns (Fields) in Bash using AWK

AWK is a powerful command line tool, that can be used to process the input data as columns.

With the examples from the following article you will be able to solve such common tasks as :

  • Print Columns by Number
  • Change Field Separator
  • Exclude Specific Columns
  • Print or Exclude a Range of Columns

Using BASH "Grep OR / Grep AND / Grep NOT" Operators

How to use OR / AND / NOT operators with Linux GREP / SED / AWK commands in examples. How to find all lines, that contain any of the several patterns and how to print all lines in a file, that match multiple patterns. How to find and print all lines, that do not match a pattern.

Using SED and AWK to Print Lines Between Two Patterns

From the following article, you'll learn how to print lines between two patterns in bash.

I'll show how to to extract and print strings between two patterns using sed and awk commands.

HowTo : Remove Blank Lines From a File

Use one of the following commands to remove blank lines from a file.