How to print 1 file then when finished another file prints beside it?


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers How to print 1 file then when finished another file prints beside it?
# 15  
Old 09-27-2019
Hi,

Your original post wanted;

Quote:
My example: The first file on the left is already finished printing, then the second files prints next.
The the example that you gave seemed to want the first line of each file printed on the same line, followed by the second line from each file printed on the same line etc...

Whereas your latest request was for;

Quote:
How would I be able to get line 123 to to match up with every line to the left ex.
abc123
def123
ghi123 and so on?
The first line of the second file appended to the end of every line from the first file, before people can assist you you need to understand what you want.

You need to show us what you've tried and show us why it doesn't work by giving us a look at the expected output.

Regards

Gull04
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Use while loop to read file and use ${file} for both filename input into awk and as string to print

I have files named with different prefixes. From each I want to extract the first line containing a specific string, and then print that line along with the prefix. I've tried to do this with a while loop, but instead of printing the prefix I print the first line of the file twice. Files:... (3 Replies)
Discussion started by: pathunkathunk
3 Replies

2. UNIX for Dummies Questions & Answers

Reading Xml file and print the values into the text file in columnwise?

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (4 Replies)
Discussion started by: sravanreddy
4 Replies

3. Shell Programming and Scripting

Need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line...

Hello, I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be: SRVXPAPI001 ERRO JUN24 07:28:34 1775 REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F ... (8 Replies)
Discussion started by: Ferocci
8 Replies

4. Shell Programming and Scripting

Search row by row from one file to another file if match is found print few colums of file 2

this is the requirement list.txt table1 table2 table3 testfile.txt name#place#data#select * from table1 name2#place2#data2#select * from table 10 innerjoin table3 name2#place2#data2#select * from table 10 output name place table1 name2 place table3 i tried using awk (7 Replies)
Discussion started by: vamsekumar
7 Replies

5. Shell Programming and Scripting

Script which telnets to a device, runs commands and prints output to a file

I am connecting to a device using telnet, I want my script to perform certain commands : ie- show device , show inventory..etc and write the output it sees from the terminal to a file. this is what I have got : #!/usr/bin/expect -- set running 1 spawn telnet <ip address> expect ... (1 Reply)
Discussion started by: samantha123
1 Replies

6. Shell Programming and Scripting

prints some fields from different files into a line of new file

i have 3 files as below: i want to print 1st,2nd,5th and 10th filed of 1st to 5th lines from each files into a line of an output file, so the result would be: : {line1}(field 1 of line 1 from file 1)(field 2 of line 1 from file 1)(field 5 of line 1 from file 1)(field 10 of line 1 from file... (1 Reply)
Discussion started by: saeed.soltani
1 Replies

7. Shell Programming and Scripting

check if file finished to copy

Hi all, I have a script that is monitoring a hot folder. This script works fine with one exception when the script is executed while a file is being copied to the hot folder. What is the easiest method to check if the copy file is completed? I'd like to get the solution in bash :) (8 Replies)
Discussion started by: gigagigosu
8 Replies

8. Shell Programming and Scripting

Need help with a file that prints letters from a file according to another file!

So basically what I want to do is pull out DNA sequences for a particular gene name. I have 2 files (FILE1 and FILE2) and I want an output into a separate file (FILE3). FILE1 and 2 are MASSIVE so I am only posting examples from each file. So FILE1 looks like this (tab deliminted, 4... (3 Replies)
Discussion started by: kylle345
3 Replies

9. Shell Programming and Scripting

Need shell script to read two file at same time and print out in single file

Need shell script to read two file at same time and print output in single file Example I have two files 1) file1.txt 2) file2.txt File1.txt contains Aaa Bbb Ccc Ddd Eee Fff File2.txt contains Zzz Yyy Xxx (10 Replies)
Discussion started by: sreedhargouda
10 Replies

10. UNIX for Advanced & Expert Users

How can I tell when an SFTP has finished copying a file?

If I download a file via SFTP how can I tell when the process is completed? Is there a process that I can monitor? Thanks (3 Replies)
Discussion started by: goodmis
3 Replies
Login or Register to Ask a Question
print.ini(5)							File Formats Manual						      print.ini(5)

NAME
print.ini -- survex printer settings Description The print.ini file contains printer descriptions for the Survex printer drivers. File Format The format of the print.ini file is similar to the .ini files used on Microsoft Windows. The file is divided into sections, each section corresponding to a separate printer description. A section starts with a section name in square brackets, e.g. aven's built-in printer support uses the aven section: [aven] followed by some options of the form <option>=<setting>, e.g.: font_size_labels=6 In the supplied print.ini each option is preceded by a comment (indicated by a semicolon ';') briefly explaining the option. Customising Printer Settings If you wish to change the size of the font used for labels or the colours used you need to override some of the setting in print.ini. You shouldn't modify the master print.ini (located in /usr/share/survex on Unix, or in the same directory as the Survex program files on other systems), or your changes will be overwritten by upgrades. Instead create: o /etc/survex/print.ini (Unix - system-wide settings) o ~/.survex/print.ini (Unix - per user settings) o myprint.ini in the directory where Survex is installed (other platforms) If one of these files contains a setting then aven will use it instead of the setting in the master print.ini. Any settings not specified will still fall back to the values in print.ini. See Also printdm(1), printhpgl(1), printpcl(1), printps(1) print.ini(5)