Advanced AWK and Sed Text Processing Techniques
AWK Field and Record Manipulation
AWK processes text line by line, treating each line as a record and each whitespace-separated value as a field. Key built-in variables control how data is parsed and displayed.
$0 — Represents the entire current line. awk '{print $0}' /etc/passwd outputs every line unchanged.
NR — Total number of input records ...
Posted on Thu, 29 Oct 2026 16:47:53 +0000 by hc
Precision Timestamp Manipulation and Automated Log Rotation in Bash
Obtaining sub-second precision in Linux environments requires leveraging either shell built-ins or external libraries. The GNU date command supports nanosecond resolution via the %N directive, while Python’s standard library offers flexible multipliers for milliseconds or microseconds.
# Capture current timestamp with nanosecond precision
NANO_ ...
Posted on Sun, 10 May 2026 14:00:53 +0000 by GrayFox12