Reputation: 1037
How to make two echo strings in the same line?
#!/bin/bash
echo "A"
echo "B" | grep B
result is:
A
B
but I want it to be:
AB
Upvotes: 1
Views: 2335
Reputation: 5734
You could avoid the line break in the first echo call with echo -n
Upvotes: 1