Entering edit mode
6.9 years ago
salamandra
▴
550
I have the file ole.txt:
A B C
1 2 3
a b c
11 22 33
with option A:
cat ole.txt | sed -n -e 1p -e 3p
we get:
A B C
a b c
with option B:
sox=$(cat ole.txt | sed -n -e 1p -e 3p)
echo $sox
we get:
A B C a b c
How can I change the code in option B to get the result in option A (the result as 2 rows)?