LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   output formatting (https://www.linuxquestions.org/questions/linux-newbie-8/output-formatting-884889/)

aruna t 06-06-2011 08:05 PM

output formatting
 
hello sir,
i hav a shell script that outputs few variables. i want to output them in a table format.can u help me in doing it by suggesting any unix commands.
the output i need is
input output
a,b c

kbp 06-06-2011 11:44 PM

I can't see that you need any specific commands ... you control the script and the script controls the output. Can you provide an example of the current output as opposed to what you want ?

aruna t 06-06-2011 11:53 PM

i want the ouput to in two columns
input output
a,b d,e
c
at present the output am getting is
input output
a,b
c
d,e
where d,e should be in output column..

grail 06-07-2011 12:23 AM

So show us your current code and we can try and help you with the issue.

ssrameez 06-07-2011 04:30 AM

Hello Aruna.
To help you more with this, we need the snippet of the data you are processing.. not just abcd.
Also if you could provide the script that you are using, we can give some suggestions..

Also Perl is a good option for doing the string formatting operations.


All times are GMT -5. The time now is 02:12 AM.