Hello, > I am writing a shell script using sed I need to figure out how I can store the > output of > > grep florida roam.db | sed -e "s/^.*\? //g" > > to a variable. roam.db has entries like, one per line. > > florida: 555-1212
you mean, in a shell variable? In bash and maybe sh this should work : myvar=`grep florida roam.db | sed -e "s/^.*\? //g"` HTH, Etienne