15,050
edits
Tags: Mobile edit Mobile web edit |
m (→Approaches) Tags: Mobile edit Mobile web edit |
||
| Line 12: | Line 12: | ||
== Approaches == | == Approaches == | ||
=== Using cat, head & tail commands === | === Approach 1: Using cat, head & tail commands === | ||
1. key-in the command<ref>[https://unix.stackexchange.com/questions/288521/with-the-linux-cat-command-how-do-i-show-only-certain-lines-by-number text processing - With the Linux "cat" command, how do I show only certain lines by number - Unix & Linux Stack Exchange]</ref> | 1. key-in the command<ref>[https://unix.stackexchange.com/questions/288521/with-the-linux-cat-command-how-do-i-show-only-certain-lines-by-number text processing - With the Linux "cat" command, how do I show only certain lines by number - Unix & Linux Stack Exchange]</ref> | ||
<pre> | <pre> | ||
| Line 47: | Line 47: | ||
</pre> | </pre> | ||
=== Using sed command === | === Approach 2: Using sed command === | ||
key-in the command<ref>[https://www.gnu.org/software/sed/manual/sed.html#Common-Commands sed, a stream editor]</ref> | key-in the command<ref>[https://www.gnu.org/software/sed/manual/sed.html#Common-Commands sed, a stream editor]</ref> | ||
<pre> | <pre> | ||