View Single Post
  #4   (View Single Post)  
Old 7th November 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
Join Date: May 2008
Location: USofA
Posts: 1,547

For standards compliance you would want to look at some of the usual but less well known text manipulation tools:

comm	select or reject lines common to two files
csplit	split files based on context
cut	cut out selected fields of each line of a file
fold	filter for folding lines
join	relational database operator
paste	merge corresponding or subsequent lines of files
split	split files into pieces
Later 4.x BSD systems expanded on such things quite plentifully, if FreeBSD is any example, hehe.

I have a file in my Dropbox that lists most of the programs covered by the last SUS spec, sans SCCS, things that should be built into the shell, etc.
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote