[PLUG] Copying File to Bash Command Line

Robert Citek robert.citek at gmail.com
Mon May 23 16:06:58 UTC 2011


On Mon, May 23, 2011 at 11:45 AM, Carlos Konstanski
<ckonstanski at pippiandcarlos.com> wrote:
> On 05/23/2011 09:41 AM, Paul Heinlein wrote:
>> On Mon, 23 May 2011, Rich Shepard wrote:
>>> ... Is there a way to
>>> include the entire configuration-options file on the command line
>>> (after ./configure, or including that command in the file) in one
>>> step?
>>
>> If you always download the Subversion repository to the same
>> directory, then just keep your configure options in a bash shell
>> script. E.g.,
>
> Or how about backticks?
>
> ./configure `cat myfile`

Or xargs:

$ cat myfile | xargs ./configure

If you want, you could even add comments using a hash (#) to your
options file and then filter them out:

$ grep -v '^ *#' myfile | xargs ./configure

Regards,
- Robert



More information about the PLUG mailing list