Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every day I'm working with Linux command. Today I'm looking for sed command.

When searching for it, there is lots of website showing how I can do with it. Usually in a website, its incomplete example and incomplete cheat sheet. When all of that sources combined together, I can get more complete cheat sheet and more complete example.

Until now its still not clear to me about who created all of this command? and where is the original source with complete list of cheat sheet?

share|improve this question

migrated from Nov 26 '10 at 19:36

This question came from our site for professional and enthusiast programmers.

sed is a very flexible tool. Showing all its possible uses is mathematically (and therefore practically) impossible. That's a bit like saying "give me the complete list of uses for the word 'green'" - the scope of the question is too large to be useful. – Piskvor Nov 26 '10 at 17:04
@Piskvor: id's say it is mathematically possible to calculate all uses, but you might have to use Knuth's up-arrow notation for a final result ;-) – darioo Nov 26 '10 at 17:08
@darloo: IIRC, allowing for unlimited input size, the set of all possible inputs should be countably infinite - and don't even go into the topic of metaprograms. – Piskvor Nov 26 '10 at 17:12
@Piskvor: assuming unlimited input size, of course. But for a finite input and all possible combinations of sed's command line modifiers (and finite input for them), you can get a number that's not infinite – darioo Nov 26 '10 at 17:18

run man sed for a lot of information about this command... ;]

share|improve this answer

Many commands come from the project GNU.

You can find the documentation of sed at '' and the source code of sed-4.2.1 here.

share|improve this answer
Many predate GNU; the GNU project simply reimplemented them. – Ignacio Vazquez-Abrams Nov 26 '10 at 19:45

These "cheat sheets" aren't lists of cheatcodes like the ones in computer games, they're either lists of many little programs that different people wrote (in that case, you can't collect all) or the documentation, which is complete.

share|improve this answer

Getting a cheat sheet for sed is a bit like getting a cheat sheet for a programming language - of necessity it will be incomplete, as sed is too big to be encapsulated in one sheet (or web page). After all, it had a book written about it! (Okay, to be fair, I've not read the whole thing, but do believe most of it is about awk.)

share|improve this answer

You must log in to answer this question.