💻 Software
Show only odd lines with cat
Fresh5 days ago
Mar 15, 202652095 viewsConfidence Score0%
0%
Problem
HI, probably is this something very easy, but I do not get the point now. In Linux, shell, given a text file, how can I do something like, cat filename so I only see the first line, the third line, 5, 7, 9 and so on? if not with cat, with another command Thanks
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Show only odd lines with cat
Low Risk
Using : Edit: removed , as shown in ghostdog74's answer and commented on by Roberto Bonvallet.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix