.SH IV. PROGRAMMING .PP .UC UNIX is a marvelously pleasant and productive system for writing programs; productivity seems to be an order of magnitude higher than on other interactive systems. .PP There will be no attempt made to teach any of the programming languages available on .UC UNIX , but a few words of advice are in order. First, .UC UNIX is written in C, as is most of the applications code. If you are undertaking anything substantial, C is the only reasonable choice. More on that in a moment. But remember that there are quite a few programs already written, some of which have substantial power. .PP The editor can be made to do things that would normally require special programs on other systems. For example, to list the first and last lines of each of a set of files, say a book, you could laboriously type .B1 ed e chap1.1 1p $p e chap1.2 1p $p etc. .B2 But instead you can do the job once and for all. Type .B1 ls chap* >temp .B2 to get the list of filenames into a file. Then edit this file to make the necessary series of editing commands (using the global commands of .C ed ), and write it into ``script''. Now the command .B1 ed