How can I prepend a line number and tab to each line of a text file?
Fresh3 days ago
Mar 15, 202662960 viewsConfidence Score1%
1%
Problem
How can I append a line number and tab to the beginning of each line of a text file?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I prepend a line number and tab to each line of a text file?
Low Risk
The nl command should do this, but it adds space before the line number too. It's part of Linux coreutils.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix