how to concatenate two command in one line and get the display in one screen


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to concatenate two command in one line and get the display in one screen
# 8  
Old 07-01-2005
output format

ya you are right,

the output has to be aligned, so that i can differentiate easily...

the format is the same what i have given in last reply...

there should be enough space between the two, to differentiate easily

the space i have mentioned earlier is 3 or 4 tabs togethere,, is that possible to have it as output
# 9  
Old 07-01-2005
i am afraid that i am not clear with the type of format that u require

pipe the output to stream editor

paste -d"\t" t t1 | sed 's/ / /g' | sed 's/ / /g'

i had replaced single space with three white spaces and
single tab space with two white spaces

and u can modify the stream editor according to ur requirements.
# 10  
Old 07-01-2005
output format1

i tried ur command, still i am getting the same...

let me put in simple words

the output shd be

on the left side of the screen the first output shd come and on the right side of the screen the second output shd come, so that it shd look like a tabular column

hope u can understand...

i am trying to copy the format here, but when i preview it, the contents are all merged, thats y i was not able to show how the format look like..

pls help
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

How to display certain line of file only using head or tail in 1 command?

First month learning about the Linux terminal and it has been a challenge yet fun so far. We're learning by using a gameshell. I'm trying to display a certain line ( only allowed 1 command ) from a file only using the head or tail. I'm pretty about this answer: head -23 history.txt | tail -1... (1 Reply)
Discussion started by: forzatekk
1 Replies

2. HP-UX

Display SAM user list at the command line

Hello, I've been doing Linux and AIX administration for years, but I'm very new to HPUX. We have an old audit process which involves someone manually using sam to generate user lists. I'd like to kill that old process with fire... But... After working a bit in the morning to try and pull... (3 Replies)
Discussion started by: Celt1977
3 Replies

3. UNIX for Dummies Questions & Answers

To find and display the middle line in a file using single line command.

Hi all, How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies

4. Red Hat

command line tool to disable screen lock and/or screen saver

Hi, I have a simple question : how to disable screen lock and/or sreen saver with command line with RHEL5.4 ? (1 Reply)
Discussion started by: albator1932
1 Replies

5. Shell Programming and Scripting

Display Specific line number using tail command

Hi , 1)i want to display specific line number using tail command. e.g. display 10 line from end. Please help... 2)Want to display line 10 to 15 (from end)using tail command) (2 Replies)
Discussion started by: vivek1489
2 Replies

6. Shell Programming and Scripting

display warning messages on command line

I have made a script to print size of a slice if it reaches more then 80% which is working fine no problem in it. I want to add this script in crontab to print this message on command line every half hour if slice size reaches more then 80%. here is the line below i added on crontab 30 *... (2 Replies)
Discussion started by: Danish Shakil
2 Replies

7. Shell Programming and Scripting

concatenate and display 2 lines as 1 with a condition for 2 line ?

I have 2 pattern of lines (SQL query and Time taken)in a log i need to capture all SQL queries with time taken >20 sec and need to display as one line. 2 lines from log: 2007-10-23 11:39:17,061 DEBUG - SQL Query : SELECT A.GROUP_CD , C.FN_CD FROM UP_GROUP A , PRD_GROUP_TO_FN B , PRD_FN... (7 Replies)
Discussion started by: vithala
7 Replies

8. UNIX for Advanced & Expert Users

Need solution concatenate and display 2 lines as 1 with a condition for 2 line ?

I have 2 pattern of lines (SQL query and Time taken)in a log i need to capture all SQL queries with time taken >20 sec and need to display as one line. 2 lines from log: 2007-10-23 11:39:17,061 DEBUG - SQL Query : SELECT A.GROUP_CD , C.FN_CD FROM UP_GROUP A , PRD_GROUP_TO_FN B , PRD_FN... (1 Reply)
Discussion started by: vithala
1 Replies

9. Solaris

screen saver command line on solaris10-intel

Hi All, I'm on Solaris10-intel and I'm on the classic GUI, CDE. Can't find the control for screen saver. Is there's a command line equivalent? Thanks in advance, itik (0 Replies)
Discussion started by: itik
0 Replies

10. Windows & DOS: Issues & Discussions

Display Printers via command line

Is there an easy way to view all printers on a local machine via command line or a script? I'm looking for the equivalent of clicking on "START, CONTROL PANEL, PRINTERS AND FAXES" to view the devices. I then want to cat it to a file where I would use it later. Thanks (3 Replies)
Discussion started by: gseyforth
3 Replies
Login or Register to Ask a Question