i have in test.idx many text and i will all lines with:
# alt: Spanish
# alt: German
# alt: Englisch
my script:
#!/bin/bash
results=$(cat /home/test.idx | grep "# alt:" | awk '{print $3}')
echo "$results"
output is among themselves:
Spanish
German
English
how can output one after the other? :
Spanish German English
Regards