1

How to do a "Control Break" (Algorithm)?

view story
linux-howto

http://www.unix.com – A vast amount of problems asked in "Shell Programming an Scripting" can be traced back to be an application of a basic algorithm called a Control Break. Every programmer - and script writers are programmers nonetheless - should immediately recognize problems of this sort and know how to deal with them. We will first discuss the problem in theory, then implement a shell script dealing with an example data set to show the ropes. The Single Control Break The most basic form is the single control break. It occurs when some record-oriented data is sortable by a key and all the rec (HowTos)