Adding to the command line via variables
From: Jeff Kloek (Jeff_at_Kloek.com)
Date: 07/30/05
- Next message: John L: "Re: Adding to the command line via variables"
- Previous message: G_r_a_n_t__at_dodo.com.au: "Re: complex text file manipulation"
- Next in thread: John L: "Re: Adding to the command line via variables"
- Reply: John L: "Re: Adding to the command line via variables"
- Reply: Bill Marcum: "Re: Adding to the command line via variables"
- Reply: Chris F.A. Johnson: "Re: Adding to the command line via variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Jul 2005 13:57:55 GMT
Hello. I'm trying to figure out how I can build a command line using the
output of the ls |grep command. The problem is the number of files returned
will vary.
As an example, one time might find output1, output2 and output3, and another
time it might also include output4 and output5.
How can I use the output of "ls |grep output" to build a command line that
does the following:
lp -d printername outputX outputX outputX ?
I don't expect to ever exceed the allowable count of command line
parameters.
Any ideas would be greatly appreciated!!
- Next message: John L: "Re: Adding to the command line via variables"
- Previous message: G_r_a_n_t__at_dodo.com.au: "Re: complex text file manipulation"
- Next in thread: John L: "Re: Adding to the command line via variables"
- Reply: John L: "Re: Adding to the command line via variables"
- Reply: Bill Marcum: "Re: Adding to the command line via variables"
- Reply: Chris F.A. Johnson: "Re: Adding to the command line via variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]