DevOps, SAP, Middleware and more

[Technical] Tips for DevOps, SAP Basis and middleware administrators in Linux and Windows Environments

  • Home
  • AI Automation
  • DevOps
  • Middleware
  • Python
  • Shell Scripting
  • SAP
  • Whoami
  • Home
  • AI Automation
  • DevOps
  • Middleware
  • Python
  • Shell Scripting
  • SAP
  • Whoami
  • Korn Shell / Bash,  PowerShell,  Shell Scripting,  Windows Bash

    💡How to Extract Specific Lines from a File: sed, awk, head/tail, grep, and with powershell

    March 3, 2026 / 0 Comments

    In the command line, it’s often necessary to extract only specific lines from a text file – whether it’s a single line or a range of lines. Fortunately, Bash offers several powerful tools for this. In this blog post, I’ll show you the most common methods using sed, awk, head/tail, and grep. Additionally, I will demonstrate an option when using PowerShell. Extracting Lines with sed sed (Stream EDitor) is a classic for text manipulation in the shell and is excellent for selectively outputting line ranges.Output a Single Line (e.g., Line 102)To output a specific line, such as line 102, you use the p command (print) in combination with the -n…

    read more
    slommi

Recent Posts

  • Deep Dive: Mastering the “Missing File Trap”
  • Mastering Dynamic Task Includes in Ansible
  • Upgrading Ollama for Copilot Support: The Step you probably Miss
  • Which Ollama Models Work with Hermes Agent? A Quick Context Window Check
  • Understanding Python’s for…else Construct

Recent Comments

  • slommi on Convert JSON to YAML and back using python
  • nicholo on Convert JSON to YAML and back using python
  • slommi on Convert JSON to YAML and back using python
  • Robert Refer on Convert JSON to YAML and back using python
  • Simon on Convert JSON to YAML and back using python

Tags

Active Directory ai ansible Apache HTTPD awk Backup mode Backupmodus bash Branching branch model ci/cd CIM Modell Cmdlet DevOps Git GitHub grep IBM Websphere Application Server Kornshell ksh linux Merging ollama Oracle Oracle DB Administration PowerShell Python SAP SAP Netweaver Script Shell SQL SQLPlus Systemkopie Tablespace tail Unix Virtual Host Visualiierung WAS WebSphere Windows wsl yaml Zeichenketten

Categories

  • 3D Print
  • AI agents
  • AI Automation
  • Allgemeines
  • ansible
  • Apache HTTPD
  • Branching & Merging
  • CI/CD Pipelines
  • Debian
  • DevOps
  • Docker
  • Flask
  • Git
  • Github
  • Github Actions
  • Gitlab
  • Gitlab Runner
  • IBM WebSphere Application Server
  • Java
  • Jinja
  • Kernel
  • Konzepte
  • Korn Shell / Bash
  • Linux
  • Maker
  • Middleware
  • n8n
  • Nvidia CUDA
  • ollama
  • Oracle
  • Oracle Datenbank
  • PowerShell
  • Python
  • RedHat
  • SAP
  • SAP Solution Manager
  • Security
  • Shell Scripting
  • SLD
  • SystemD
  • Systemkopie
  • Tablespaces
  • Tomcat
  • Transportwesen
  • Ubuntu
  • Uncategorized
  • Windows
  • Windows Bash
  • WSL
  • YAML

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Categories

  • 3D Print
  • AI agents
  • AI Automation
  • Allgemeines
  • ansible
  • Apache HTTPD
  • Branching & Merging
  • CI/CD Pipelines
  • Debian
  • DevOps
  • Docker
  • Flask
  • Git
  • Github
  • Github Actions
  • Gitlab
  • Gitlab Runner
  • IBM WebSphere Application Server
  • Java
  • Jinja
  • Kernel
  • Konzepte
  • Korn Shell / Bash
  • Linux
  • Maker
  • Middleware
  • n8n
  • Nvidia CUDA
  • ollama
  • Oracle
  • Oracle Datenbank
  • PowerShell
  • Python
  • RedHat
  • SAP
  • SAP Solution Manager
  • Security
  • Shell Scripting
  • SLD
  • SystemD
  • Systemkopie
  • Tablespaces
  • Tomcat
  • Transportwesen
  • Ubuntu
  • Uncategorized
  • Windows
  • Windows Bash
  • WSL
  • YAML

Archives

  • May 2026
  • April 2026
  • March 2026
  • April 2025
  • November 2021
  • July 2021
  • April 2021
  • September 2020
  • July 2020
  • May 2020
  • March 2020
  • February 2020
  • December 2019
  • August 2019
  • March 2019
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • March 2016
  • February 2016
  • December 2015
  • November 2015
  • July 2015
  • May 2009
  • March 2009
  • Disclaimer
  • Privacy
  • Impressum
Ashe Theme by WP Royal.