如何回显一些内容并读取用户输入,然后在同一行回显一些内容?

时间:2018-05-09 16:47:23

标签: bash

echo -e -n "Enter the search string: "; read string1; echo " $string1 was found $count times in our database";

Output:
Enter the search string: xyz

xyz was found 10 times in our database

但我需要输出如下

Enter the search string: xyz  xyz was found 10 times in our database

如何获得这种方式?

0 个答案:

没有答案