Seders\’s grab bag – Tutorials

2010-01-24 555 words 3 mins read

<a href="">

<span style="font-size: x-large;"><a href="">seder&#8217;s<a href=""> grab bag

  • <a href="">scripts

  • <a href="">tutorials

  • <a href="">seders

  • <a href="">ssed

  • <a href="">links

  • <a href="">Intros

  • <a href="">Advanced

  • <a href="">Miscellaneous

<span style="font-size: large;">Sed Tutorials

If you have written anything about sed – whether an introduction, how sed got you out of a real-life situation, or perhaps an advanced technique you&#8217;ve discovered – you may like have your work published here. <a href="">Your contribution will be very welcome.

<span style="font-size: medium;">Intros

<a href="">sed one-liners (18kb)

The essential, official compendium of useful sed one-liners. Organised into sections by usage, such as file spacing, line numbering, selective line removal/deletion and optimisation.

<a href="">The sed FAQ v15 (168kb)

The official, indispensable sed FAQ. This file was recently updated. Also available as <a href="">ZIP-compressed HTML (75kb). The latest version can always be found on <a href="">the author&#8217;s site.

<a href="">Another sed FAQ

And here is another sed FAQ, by a different person.

<a href="">Do it with sed (51kb)

By <a href="">Carlos Jorge G.Duarte. A comprehensive and leisurely résumé. Contains many interesting examples, and a useful command summary.

<a href="">SED – A Non-interactive Text Editor (32kb)

By Lee E. McMahon (1978). The definitive introduction, this well-known document used to be distributed with UNIX systems. It examines each of sed&#8217;s functions in depth and includes useful examples.

<a href="">Program state in sed (4kb)

By Greg Ubben. A nice introduction to advanced sed, showing how to mantain state across lines.

<a href="">Introduction to Unix&#8217;s SED editor

By F. Curtis Michel, Rice University, Houston.

<span style="font-size: medium;">Advanced topics

<a href="">Using sed to create a book index (12kb)

Eric Pement of Cornerstone magazine shows how he used sed and other utilities to massage an unsorted list of book references into an index.

<a href="">Using lookup tables with s/// (9kb)

Part 1 of Greg Ubben&#8217;s analysis of a complex sed script he wrote to sort, delimit and number an input file containing tabulated data. Lookup tables are a powerful technique for the serious seder&#8217;s armoury.

<a href="">A lookup-table counter (11kb)

Part 2 of Greg&#8217;s script analysis looks at how he implemented a counter using lookup tables. This complex problem is described step by step from the basics, following through Greg&#8217;s reasoning until we finally reach the solution.

<a href="">Counting words (3kb)
<a href="">Adding a list of decimals (3kb)

Greg explains how to count words and how to add a list of decimal numbers using a simple analog format.

<span style="font-size: medium;">Miscellaneous

<a href="">When seemingly obvious scripts fail (2kb)

sed FAQ author Eric Pement explains why sometimes you cannot get your one-liner right.

<a href="">Towers of Hanoi with <a href="">sed (18kb)

A document which shows how to make sed solve the classic Towers of Hanoi game.

<a href="">Proposals for a custom sed (18kb)

A list of proposals to make sed more versatile without sacrificing its speed and overall philosophy. I implemented a few of these in <a href="">super-sed and in GNU sed 4.0. <h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="">Happy Birthday, Unix! ( <li class="zemanta-article-ul-li"><a href="">The end of the road for a favored text editor ( <li class="zemanta-article-ul-li"><a href="">Turn Vim or Emacs Into and IDE With Exuberant-Ctags ( <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href=""><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related pretty-attribution">


Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it