Tagged articles
11 articles
Page 1 of 1
Raymond Ops
Raymond Ops
May 30, 2025 · Operations

Mastering sed and expect: Powerful One‑Liner Tricks for Linux Automation

This guide introduces the Linux stream editor sed and the automation tool expect, covering essential options, line‑based editing, pattern matching, backup strategies, substitution techniques, grouping, practical exercises, non‑interactive input methods, and expect scripting fundamentals for automating interactive shell sessions.

Shell scriptingexpectlinux automation
0 likes · 7 min read
Mastering sed and expect: Powerful One‑Liner Tricks for Linux Automation
Liangxu Linux
Liangxu Linux
Mar 8, 2025 · Fundamentals

Master Shell Scripting: From Basics to Advanced Control Structures

This guide explains what a shell script file is, how to write Bash scripts with proper syntax, manage variables, use redirection, pipes, quoting, grep, operators, arrays, control flow statements, functions, and even automate interactions with an Expect script, providing clear examples for each concept.

BashControl structuresShell
0 likes · 11 min read
Master Shell Scripting: From Basics to Advanced Control Structures
Liangxu Linux
Liangxu Linux
Dec 8, 2024 · Backend Development

Master Bash: From Basic Scripts to Advanced Automation with Expect

This guide explains what script files are and walks through writing Bash scripts, covering naming conventions, variables, special and environment variables, redirection, pipes, quoting, grep options, operators, arrays, control structures, functions, and automating interactions with Expect, providing practical code examples for each concept.

BashShellautomation
0 likes · 11 min read
Master Bash: From Basic Scripts to Advanced Automation with Expect
MaGe Linux Operations
MaGe Linux Operations
Oct 13, 2024 · Fundamentals

Mastering sed: Powerful Text Manipulation and Automation Techniques

This guide explains how to use sed for line‑based text processing, including options for in‑place editing, pattern ranges, odd/even line extraction, substitution with various delimiters and flags, backup strategies, grouping with extended regex, practical exercises, and automating interactive scripts with expect.

Shell scriptingexpectregex
0 likes · 5 min read
Mastering sed: Powerful Text Manipulation and Automation Techniques
Code Ape Tech Column
Code Ape Tech Column
Jul 26, 2024 · Operations

Bash Scripts for File Consistency Checks, Log Monitoring, and System Automation

This article presents a comprehensive collection of Bash scripts that perform tasks such as verifying file consistency across servers, scheduled log cleaning, network traffic monitoring, numeric analysis in files, automated FTP downloads, interactive number games, Nginx 502 detection, variable assignments, bulk file renaming, IP address validation, and various system administration operations.

BashShell scriptingSystem Administration
0 likes · 24 min read
Bash Scripts for File Consistency Checks, Log Monitoring, and System Automation
DevOps Engineer
DevOps Engineer
Jun 14, 2020 · Operations

Automating Periodic SSH Login Checks with Jenkins and Expect

This guide explains how to use a Jenkins‑triggered shell script with Expect to regularly log into multiple remote VMs, record results, allow users to add hostnames, and commit changes to a Git repository for automated DevOps operations.

DevOpsJenkinsShell scripting
0 likes · 4 min read
Automating Periodic SSH Login Checks with Jenkins and Expect
Open Source Linux
Open Source Linux
Mar 29, 2020 · Operations

Automate Bulk Linux Root Password Changes with Expect Scripts

Learn how to efficiently update root passwords across dozens or hundreds of Linux servers by creating Expect scripts that automate SSH logins, parse IP and password lists, and execute batch password changes, complete with step-by-step instructions, required environment setup, and script explanations.

LinuxPassword ManagementShell scripting
0 likes · 5 min read
Automate Bulk Linux Root Password Changes with Expect Scripts
MaGe Linux Operations
MaGe Linux Operations
Aug 15, 2014 · Operations

Automate Multi-Server Commands with Expect: A Quick Guide

This article introduces the Expect scripting language, an extension of Tcl, and provides a concise example that automates running commands on multiple Linux servers by handling interactive prompts such as password entry, along with usage instructions and installation tips for CentOS and Ubuntu.

LinuxSSHexpect
0 likes · 3 min read
Automate Multi-Server Commands with Expect: A Quick Guide