I have a file named test.txt that is like this:
Test Foo Bar
But I want to put each line in a array and pri
Here is my single liner:
perl -e 'chomp(@a = <>); print join(" ", @a)' test.txt
Explanation:
@a
chomp(..)