0

I would like to set a command in a bash script (Ubuntu) where I can concatenate two strings together and print them. For example:

Users/Desktop/File_

and

20_A

I would like a command that allows me to concatenate them, such as:

Users/Desktop/File_20_A

In R to do that I use the command paste0. Does that exist also in bash?

Matt Schuchard
  • 18,599
  • 3
  • 40
  • 57
CafféSospeso
  • 801
  • 2
  • 9
  • 22

1 Answers1

0

The command you're looking for is called echo. For example if you have two variables A and B:

echo "$A$B"
John Zwinck
  • 223,042
  • 33
  • 293
  • 407