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?

Matthew Schuchard
  • 25,172
  • 3
  • 47
  • 67
CafféSospeso
  • 1,101
  • 3
  • 11
  • 28

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
  • 239,568
  • 38
  • 324
  • 436