On Thu, Dec 18, 2003 at 01:33:04AM -0500, Jake McHenry wrote: > grep 'alsdjf' * | cut -f 1 -d : > > Returns all the filenames:what I'm searching for, growing rapidly, > right now the line count is around 200. What I want to do with this > output is input it into a script I made, which contains sa-learn > --args.. $*, where $* is the output from grep and cut. > > I need the output from grep and cut to be all on the same line, not > the 200+ as it currently is. > > So, is there a way to have the output from grep and cut to be all on > one big line seperated by spaces? echo `grep 'alsdjf' * | cut -f 1 -d :` If your script wants the names as arguments, you can replace "echo" with the name of the script. -- David Lupo david.lupo@xxxxxxxxxxxx -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list