On 2020-08-24 02:21, Patrick O'Callaghan wrote:
On Sun, 2020-08-23 at 16:01 -0700, ToddAndMargo via users wrote:
On 2020-08-23 02:53, Patrick O'Callaghan wrote:
On Sat, 2020-08-22 at 18:21 -0700, ToddAndMargo via users wrote:
3) Why do you use "sed -n 1,1p" in GetGW?

Because I only wanted the first line.  Sometimes

with that commend you get two lines back.  I am

covering all my bases.

head -1

poc

Interesting.  It will print the first lines or the last lines.
Thank you!

Sed allows me to pick which ones I want.

'head' prints the first N lines (10 by default). See also 'tail'.

You said you wanted the first line, so 'head' is the obvious command,
but as with most things in UNIX/Linux, there is more than one way of
doing it.

poc


With sed I can pick out what line or lines I want.  Makes
it universal.  Once I learn how to do something I tend to
stick with it.

With Linux, here is always 11 ways of doing everything. With Raku (Perl 6) there is always 101 ways of doing everything.

Makes both Linux and Raku fun to work with.   I do
program somewhat in Windows, but it is no where near
as much fun.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to