If you want to print files side by side, you have to print them at the same time.
Like you python script in your post#1 does.
In the shell the "read" command automatically chops the leading end trailing space.
You see that it reads a line from file1 into variable L1 and simultaneously a line from file2 into variable L2. (Using two descriptors/streams that are opened when the loop starts.)
The echo command prints L1 and L2 side by side.
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT CENTOS
decode-dimms
decode-dimms(1) User Commands decode-dimms(1)NAME
decode-dimms - Decode the information found in memory module SPD EEPROMs.
SYNOPSIS
decode-dimms [-c] [-f [-b]] [-x|-X file [files..]]
decode-dimms -h
DESCRIPTION
The purpose of the decode-dimms tool is to decode the information found in memory module SPD EEPROMs. The SPD data is read either from the
running system or dump files. The tool requires the eeprom kernel module to be loaded.
PARAMETERS -f, --format
Print nice html output
-b, --bodyonly
Don't print html header (useful for postprocessing the output)
--side-by-side
Display all DIMMs side-by-side if possible
--merge-cells
Merge neighbour cells with identical values (side-by-side output only)
-c, --checksum
Decode completely even if checksum fails
-x Read data from hexdump files
-X Same as -x except treat multibyte hex data as little endian
-h, --help
Display this usage summary
SEE ALSO decode-vaio(1)AUTHORS
Philip Edelbrock <phil@netroedge.com>
Christian Zuckschwerdt <zany@triq.net>
Burkart Lingner <burkart@bollchen.de>
Jean Delvare <khali@linux-fr.org>
i2c-tools Oct 2013 decode-dimms(1)