On Sun, 8 Jan 2017, Mauro Souza via talk wrote:

Or
nFname="${base}.mp4"

Using brackets you can mix variables and text and create something like this:
newName="${oldname}-bkp-${filedate}.${extension}.old"

The braces are not necessary here. This will work fine:

newName="$oldname-bkp-$filedate.$extension.old"

Braces would be necessary if you were using underscores instead of
hyphens because they can be part of a variable name:

newName="${oldname}_bkp_$filedate.$extension.old"

--
Chris F.A. Johnson, <http://cfajohnson.com>
---
Talk Mailing List
[email protected]
https://gtalug.org/mailman/listinfo/talk

Reply via email to