On Sat, Jan 11, 2003 at 05:56:16PM -0800, Jim C wrote: > I have a list of positive integers of which I only want the first one. > They are of arbitrary size. How can I cut the rest of them off? > I've been trying to write a regular expression for this using sed or awk.
#!/bin/sh LIST="42 666 1776 2001" echo $LIST | sed -e 's/^\([0-9]*\).*/\1/'
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
