meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Wednesday, December 13, 2006

Unix Tip: Adding lines to the ends of files

By Sandra Henry-Stocker

Let's look at a quick, clever way to add lines to the ends of files on a Unix system. This little Unix trick can be very useful if you are distributing installation directions to customers and want to limit the possible mistakes that they can make in updating important system files. The basis of this trick is the Unix here document -- a special form of I/O redirection that allows you to insert the content to be added between the redirect command and a special marker that is recognized as the end marker for the inserted text.

Read the full article here.

0 Comments:

Post a Comment

<< Home