Format Column

I need a script that takes it input wither it be from a file or inputed as variables and sort that into three columns. Thanks

Please be more specific.
Explain your requirement and give the example.

I know you have to use the pr command just can't figure out how to get it to work.

Say you run the ./script varbale varable varable etc
i want them outputed into three columns
or if i do ./script filename
i want the same done

I don't know if I'm getting you fully but a possible approach:

<edit>

EDIT: Never mind, I got it all wrong. You want three columns, not a single one. :stuck_out_tongue:

Could you please clarify a little further?