Fading Coder

One Final Commit for the Last Sprint

Practical Text Pattern Matching with Grep

Create file.txt with the following content: 48 Dec 3BC1977 LPSX 68.00 LVX2A 138 483 Sept 5AP1996 USP 65.00 LVX2C 189 47 Oct 3ZL1998 LPSX 43.00 KVM9D 512 219 dec 2CC1999 CAD 23.00 PLV2C 68 484 nov 7PL1996 CAD 49.00 PLV2C 234 483 may 5PA1998 USP 37.00 KVM9D 644 216 sept 3ZL1998 USP 86.00 KVM9E 234 Cou...

Comprehensive Guide to the AWK Command

AWK is a powerful text analysis tool, particularly adept at data processing and report generation. It reads input line by line, splits each line in to fields by a default delimiter (space), and performs analysis on the segmented parts. The basic syntax is: awk 'pattern { action }' filenames. Here, p...

Bash Command-Line Tips and Techniques

Bash is free software, distributed under the terms of the GNU General Public License version 3 Bash serves as the default shell and command interpreter for GNU/Linux operating systems For those unfamiliar with shell or command language interpreters, it's recommended to explore the concept briefly b...

Shell Variable Management and Assignment Techniques

Variable Definition In Bash shell environments, all variable values are stored as strings regarrdless of whether quotes are used during assignment. This means Bash does not perform type differentiation by default - integers and decimals become string values, differing from most programming languages...

Shell Loop Constructs: Iterating Over Numbers, Strings, and Files

Shell scripts often require repetitive tasks. The for loop is a fundamental structure for iterating over sequences, lists, or file paths. This article covers three common types of for loops: numeric ranges, character strings, and patnhame expansion. Numeric Iteration Shell provides several ways to l...

Shell Variable Types: Environment Variables versus Regular Variables

Shell Script Fundamentals Script Interpreter The interpreter declaration must appear on the first line, starting with a shebang (#!): #!/bin/bash Different languages require different interpreters. The shebang tells the system which program to use for executing the script. Comments Comment lines use...

Understanding Shell Types and Environment Configuration in Unix-like Systems

In Unix-based operating systems (including Linux distributions and macOS), the shell serves as an intermediary between users and the kernel. Commands typed at the keyboard are parsed by the shell and forwarded to the kernel for execution. 1 Unix Shell Variants Modern Unix systems typically include m...

GNU/Linux Fundamentals

Console Shell Superuser root CLI management tools File Fundamentals Directories Links Device files Console Shell When you start a Linux system without a graphical interface, you are placed in a CLI GUI (Graphical User Interface): interaction via visual windows, using mouse primarily, keyboard secon...

Shell Loop Constructs: for, while, until, and select

Shell scripts provide several loop mechanisms for repetitive task automation. This guide covers the main loop types available in Bash. Loop Types Overview Loop Type Purpose for Iterate over a list or sequence while Execute while a condition is true until Execute until a condition becomes true select...

Linux System Administration and Monitoring Commands

System identification begins with viewing machine identity and runtime statistics. The hostname utility displays or temporarily modifies the system hostname, though persistent changes require editing network configuration files rather than runtime invocation. $ hostname # Display system hostname $ h...