03-14-2011
Dear yinyuemi,
thank you very much for the code you wrote for me. It works well!
Could you explain the meaning of it, and me how does it work?
Moreover, could it be possible to add the filename as the first line in every file, after deleting that part of text, and before merging it tho the whole mergefile?
Thank you again!
mjomba
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello guys,
I gotta question, i have a lot of log files (simple text) and i need to merge them in group of 10 files, one next to the other, that have sense?
For example, i have the files:
File1
File2
File3
File4
.
.
File100
I need to merge the contents of each file into a new file... (3 Replies)
Discussion started by: lestat_ecuador
3 Replies
2. Shell Programming and Scripting
Hi,
i have the files f1 and f2 like:
files f1:
c1 a1
c2 a2
c3 a3
file f2:
c1 b1
c2 b2
c3 b3
i want merge the f1 and f2 file to f3 file like:
c1 a1 b1
c2 a2 b3
c3 a3 b3........
....
.
.
please help me onthis..... (5 Replies)
Discussion started by: koti_rama
5 Replies
3. Shell Programming and Scripting
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
2 Replies
4. Shell Programming and Scripting
Hello,
i'd like a bash script to merge 2 files without duplicate lines.
Example :
file1 :
toto
titi
file2 :
toto
tata
Expected result, file3 :
toto (5 Replies)
Discussion started by: Celmar
5 Replies
5. Shell Programming and Scripting
Given are File A and File B
File A has for example 5 lines:
AAA
BBB
CCC
DDD
EEE
File B has 3 lines:
111
222
333
How can i merge A and B into:
111
222
333
AAA (first line from A)
then a new file: (4 Replies)
Discussion started by: Y-T
4 Replies
6. Shell Programming and Scripting
Hi ,
This might be the stupidest question I am asking, but I am struck with this problem. I am trying to merge 2 files, file1 has header and file2 has contents. while I merge them , it merges from the 1st line of file1.
for ex: file1
col1|col2|col3|
file2
123|234|456|... (2 Replies)
Discussion started by: rashmisb
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I would like to know how can I merge files based on their coordinates, but mantaining the score of each file in the output file like:
Note: 1st column is for chromosome, 2nd for start, 3rd for end of segment, 4th for score
file1:
1 200 300 20
1 400 500 30
file2:
1 200 350 30
1... (1 Reply)
Discussion started by: fadista
1 Replies
8. Shell Programming and Scripting
Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Discussion started by: srikanth_sagi
10 Replies
9. Shell Programming and Scripting
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)
Discussion started by: jiam912
14 Replies
10. Shell Programming and Scripting
Dear Frens,
I have two files and need to merge into one file. Like
File_1:
Field1 Field2
1 4
File_2:
Field1 Field2
3 5
I need one single output as
File_1:
Field1 Field2
1 4
3 5
This means taking header from either file. (8 Replies)
Discussion started by: manisha_singh
8 Replies
LEARN ABOUT DEBIAN
snap2tzx
snap2tzx(1) Emulators snap2tzx(1)
NAME
snap2tzx - Convert ZX Spectrum snapshot to .tzx tape images
SYNOPSIS
snap2tzx [-1 string] [-2 string] [-b colour] [-g string] [-l string] [-o filename] [-r] [-s speed] [-v] [-$ filename] snapshot
DESCRIPTION
snap2tzx converts a ZX Spectrum snapshot into a .tzx tape image.
OPTIONS
-1 string
causes string (which has a maximum of 32 characters) to be shown while loading.
-2 string
causes string (maximum 32 characters) to also be shown while loading.
-b colour
specifies the border colour while loading.
-g string
causes string (maximum 32 characters) to be used as the game name while loading.
-l string
causes string (maximum 8 characters) to be used as the BASIC filename in the loader.
-o filename
causes the output to be sent to filename.
-r causes the final line of attribute data in the loading screen to be bright.
-s speed
specifies the speed of the loader; available values for speed are 0 (1500 bps), 1 (2250 bps), 2 (3000 bps) and 3 (6000 bps).
-v specifies verbose output.
-$ filename
specifies that the ZX Spectrum screen stored in filename should be used as the loading screen.
snapshot
specifies the snapshot (in a format supported by libspectrum(3)) to be converted.
In any string parameter, the tilde (~) will be converted into a copyright symbol.
BUGS
None known.
SEE ALSO
fuse(1), fuse-utils(1), libspectrum(3), listbasic(1), snapconv(1)
The comp.sys.sinclair Spectrum FAQ, at
http://www.worldofspectrum.org/faq/index.html.
AUTHOR
Philip Kendall (philip-fuse@shadowmagic.org.uk).
Tomaz Kac wrote z802tzx (ftp://ftp.worldofspectrum.org/pub/sinclair/tools/unix/z802tzx-1.2.tar.gz), on which snap2tzx is very heavily
based.
Martijn van der Heide wrote the turbo-loading code, originally for Taper (http://www.worldofspectrum.org/taper.html).
Version 1.0.0 16th December, 2010 snap2tzx(1)