I want to create files and assign names to them through a script, but here’s the problem, I need to assign different names. How to implement? The fact is that the string parameter is passed to the variable in the script, from which the name is danced.

    1 answer 1

    sh-4.2$ x="AAA" sh-4.2$ y="BBB" sh-4.2$ z="$x$y" sh-4.2$ echo $z AAABBB