Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Miscellaneous Tools > Using sed Utility

7.2. Using sed Utility

The sed utility is a stream editor that can be used for different file editing purposes when used as a filter. The most common task for software development purposes is the use of sed to search and replace text in source code files. Let us take the example of the following C source code file hello.c.

#include <stdio.h>

main ()
{
  char string[25];

  printf ("Enter a line of characters : ");
  scanf ("%s", string);
  printf ("The entered string is : %s\n ", string);
}


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial