how to join lines in a file in Linux? 1) tr “n” ” ” < filename 2) cat filename | tr -d “n” 3) cat filename | tr “n” ” “ 4) paste -s -d ” ” filename April 14, 2015 Sivasakthi Kumar Linux For You Leave a Comment