#
# KEHOME/bin/cyclist2column
# Sep/12/2003

# convert CycL list to column
# input format: one list per line
#	(x1 x2 ... xn)
# output format: one value per line, sorted
#	xi
#	...

column2line		|  # fix broken lines
sed 's/^  *//'		|  # delete leading  blanks
sed 's/  *$//'		|  # delete trailing blanks
sed 's/)  *(/)\n(/g'	|  # change interior blanks to newline
grep '(.*)'		|  # delete other junk
sed 's/^((*//g'		|  # delete leading  "("
sed 's/))*$//g'		|  # delete trailing ")"
sort -uf		   # sort, delete duplicates

#