Merge output lines with awk

Use paste with comma, default is tab

paste file1.txt file2.txt -d ","


merge output lines in the same line with awk

echo -e 'a\nb\nc' | awk 'ORS=" " { print }'

Apt error Could not get lock /var/lib/apt/lists/lock

  sudo fuser -vik -TERM /var/lib/apt/lists/lock  

Mais vistos