can we display the file contents in vertical order...by using linux command?

link|improve this question
cat fileA fileB fileC? – Telemachus Nov 5 '09 at 14:54
If you are wondering why you have som many different types of answers, it is because no one understands what you mean by "vertical order". Try providing a simple example of what you are trying to do. – DaveParillo Nov 5 '09 at 15:23
...and to be able to change your question: use the same OpenID to log in to Super User here, and then associate your accounts at stackoverflow.com/users/203504?tab=accounts That will make the above question yours again. – Arjan Nov 5 '09 at 15:32
feedback

migrated from stackoverflow.com Nov 5 '09 at 14:51

This question came from our site for professional and enthusiast programmers.

5 Answers

or are you looking to display the directory contents in vertical order with something like:

ls -l
link|improve this answer
Do you mean -1? (-l isn't necessary for vertical directory listing) – Telemachus Nov 5 '09 at 15:33
ha - I had always used -l, but -1 looks a lot cleaner. thanks for the tip ;) – quickcel Nov 5 '09 at 16:55
feedback

Not clear exactly what you want here, but the "pr" command will allow formatting of content for printing, e.g. display in multiple columns. Try a "man pr" and see if it helps you.

link|improve this answer
feedback

Have you tried less filename ?

link|improve this answer
feedback

Do you mean literally to take each line and make it one character wide? So that 'this' becomes:

t
h
i
s
link|improve this answer
feedback

A neat trick to accomplish what Telemachus mentioned is:

$ echo "this" | grep -o .
link|improve this answer
There's the more specialized echo "test" | fold -w 1. – Propeng Oct 5 '10 at 16:44
feedback

Your Answer

 
or
required, but never shown