[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash scripting question (variables and spaces)



This should work, though I have not actually tried it:

#!/bin/bash
A="Hello"
B="Karsten"
C="$A $B"
someprog --greeting "$C"

Attachment: pgpjTbCJFY3Ix.pgp
Description: PGP signature


Reply to: