[TriLUG] HOWTO: Create PDFs using Samba but not CUPS

Steve Hoffman srhoffman at gmail.com
Mon Feb 27 17:00:36 EST 2006


AHHHHHHHH (sound of lightbulb lighting, then immidiately blowing).  I had
tried time and time again to use the php/perl method of concatenation with
variable = "blah" . $var1 . "Blah.pdf"

Thank you!!!

steve

On 2/27/06, Alan Porter <porter at trilug.org> wrote:
>
> David McDowell said the following:
>
> >Ok, the relationship between %U abnd $2 makes sense now.  I changed
> >the _ to - and now I have filenames:  -Feb27-160509.pdf  so the _ was
> >part of it, but I'm still not getting a username value.
> >
>
>
> Variable names in bash can have underscores in them, so
> you need to do something like this to draw the line between
> the variable name and your delimiters.
>
> filename=${user}_${date}_${whatever}
>
> This trick is useful if you are using a delimiter like "x".
> Otherwise, how would bash know that the x's are not part
> of the variable names?  filename=$userx$datex$whatever
> will not work, filename=${user}x${date}x${whatever} will.
>
>
> Alan
>
>
>
>
> .
>
>
>
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>



More information about the TriLUG mailing list