• Uncategorized

    Adding Colors to Text in Markdown

    Introduction Markdown is a lightweight markup language that keeps formatting simple and readable. However, one limitation many users encounter is the lack of native support for colored text. While pure Markdown doesn’t offer this feature, there’s an elegant solution: using LaTeX color commands through inline math notation. In this guide, we’ll explore how to add vibrant colors to your text while maintaining the simplicity and portability of Markdown syntax. The Solution: LaTeX with Markdown The most straightforward way to add colors to text in Markdown is by combining LaTeX’s \textcolor command with inline math delimiters. This works in most Markdown renderers that support LaTeX math notation. Basic Syntax This renders…

  • Korn Shell / Bash,  PowerShell,  Shell Scripting,  Windows Bash

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

    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…