4.10. sed

Sed it the streaming editor. It makes it easy for example to replace text inside a source code file. The Wireshark build process uses this to stamp version strings in various places.

4.10.1. UNIX and Cygwin: sed

Sed is available for most of the UNIX-like platforms and as the sed package from the Cygwin setup. It is also available via Chocolatey:

PS$>cyg-get sed

If sed isn’t already installed or available as a package for your platform, you can get it at http://directory.fsf.org/GNU/sed.html

After correct installation, typing at the bash command line prompt:

$ sed --version

should result in something like:

GNU sed version 4.1.5
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.

However, the version string may vary.

4.10.2. Windows native: sed

A native Windows sed package can be obtained from http://gnuwin32.sourceforge.net/. The installation should be straightforward. A Chocolatey package (devbox-sed) is available but has not been tested.