> It's spawns lot of processes, but does the job. > > this is the worst line > echo $news | tr "+" "\n" | sort|uniq|tr "\n" "+"|sed "s/^\(.*\)+$/\1/g"
If you're worried about the number of processes you're spawning, I believe you can replace this line with something resembling echo "$olds" | egrep "(^|\+)$news(\+|$)" || echo "$olds+$news" (The sed call above could also be much simplified to sed "s/+$//" ) ~Chris. _______________________________________________ [email protected] mailing list http://wmii.de/cgi-bin/mailman/listinfo/wmii
