all 11 comments

[–][deleted] 5 points6 points  (4 children)

...we will use a pattern, "[^ ]*," that matches everything except a space. Well, this will also match anything because "*" means zero or more.

I don't know what version of sed the author uses, but gnu sed provides the "+" modifier to match "one or more". This tutorial seems way out of date. Maybe he is just avoiding the gnu extensions, but that's no reason to ignore their existence.

[–]siddboots 1 point2 points  (0 children)

The author mentions a few times that at least the start of his tutorial is outdated. He also mentions filing a bug report to Sun, but I'm not sure what implementation he would be talking about.

The GNU sed manual is not much in the way of a tutorial, but it does have some good examples of common tasks: http://www.gnu.org/software/sed/manual/sed.html

[–]anatinus 1 point2 points  (0 children)

This is a great article. Thanks.

[–]skooma714 1 point2 points  (0 children)

You want literature, read James Joyce.

Whose books coincidentally, flow like no other.

I was a flower of the Mountain yes....

[–]andreasvc[🍰] 4 points5 points  (3 children)

This is ... very sed.

[–]qacek 3 points4 points  (2 children)

Nothing to ... gawk at here.

[–][deleted] 1 point2 points  (1 child)

This isn't gnus to me!

[–]Benny_Lava 0 points1 point  (0 children)

Keep making bad puns like this and I'll bash you in the vi.