I do have a same kind of problem.... i have 2 files time.out and finaltime.out
finaltime.out
time.out
i want time.out to be compared to finaltime.out such that if col1 in both files is same then it have to be replace with data of time.out in finaltime.out... if the data of time.out is not present in final time.out then at the end of finaltime.out it have to write in a new line... can someone say me how to do this
Hi all,
I have got a problem while comparing 2 text files and the result should contains the unique values(Non repeatable).
For eg:
file1.txt
1
2
3
4
file2.txt
2
3
So after comaping the above 2 files I should get only 1 and 4 as the output. Pls help me out. (7 Replies)
Hi all,
I have a huge csv file with the following format of data,
Num SNPs, 549997
Total SNPs,555352
Num Samples, 157
SNP, SampleID, Allele1, Allele2
A001,AB1,A,A
A002,AB1,A,A
A003,AB1,A,A
...
...
...
I would like to write out a list of unique SNP (column 1). Could you... (3 Replies)
Hi All,
Is there a way to get NON unique lines from 2 or more concatenated files?
Basically I have several files which are very similar with the exception of few lines and I want to find out which lines are different in each file. Very simple example is
file1 contains:
1
2
3
4
5file2... (122 Replies)
Hi All,
I have a very huge file (4GB) which has duplicate lines. I want to delete duplicate lines leaving unique lines. Sort, uniq, awk '!x++' are not working as its running out of buffer space.
I dont know if this works : I want to read each line of the File in a For Loop, and want to... (16 Replies)
Hi,
I would like to compare 2 files, and have a return code write to a file.
regardless of the files contents are the same the code should be writing to a file (if both files contents are same then return code 0).
A simple example will be great :)
Thanks (3 Replies)
hi
i have used comm -13 <(sort 1.txt) <(sort 2.txt) option to get the unique lines that are present in file 2 but not in file 1. but some how i am getting the entire file 2. i would expect few but not all uncommon lines fro my dat. is there anything wrong with the way i used the command?
my... (1 Reply)
hi
my problem is little complicated one. i have 2 files which appear like this
file 1
abbsss:aa:22:34:as akl abc 1234
mkilll:as:ss:23:qs asc abc 0987
mlopii:cd:wq:24:as asd abc 7866
file2
lkoaa:as:24:32:sa alk abc 3245
lkmo:as:34:43:qs qsa abc 0987
kloia:ds:45:56:sa acq abc 7805
i... (5 Replies)
Hello I'm having a little difficulty in writing a shell script for a few simple tasks.
First I have two files "file1.txt" and "file2.txt" and I want to read and compare the last line of each file. The files look like this.
File1.txt
File2.txt
After comparing the two lines I would... (2 Replies)
Hello Everyone!
I have updated the first post so that my intentions are easier to understand, and also attached sample files (post #18).
I have over 500 text files in a directory. Over 1 GB of data. The data in those files is organised in lines:
My intention is to return one line per... (23 Replies)
Hi,
I am trying to script the below, but I am not very good at it :(
Your help would be greatly appreciated.
1. read all files in the directory in strings
strings *.*
2. in each file, for each line that contains "ABCD", store characters located at position 521 and 522 of this line... (9 Replies)
Discussion started by: clippertm
9 Replies
LEARN ABOUT DEBIAN
trjcat
trjcat(1) GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c trjcat(1)NAME
trjcat - concatenates trajectory files
VERSION 4.5.4-dev-20110404-bc5695c
SYNOPSIS
trjcat -f traj.xtc -o trajout.xtc -n index.ndx -demux remd.xvg -[no]h -[no]version -nice int -tu enum -xvg enum -b time -e time -dt time
-prec int -[no]vel -[no]settime -[no]sort -[no]keeplast -[no]overwrite -[no]cat
DESCRIPTION
trjcat concatenates several input trajectory files in sorted order. In case of double time frames the one in the later file is used. By
specifying -settime you will be asked for the start time of each file. The input files are taken from the command line, such that a com-
mand like trjcat -f *.trr -o fixed.trr should do the trick. Using -cat, you can simply paste several files together without removal of
frames with identical time stamps.
One important option is inferred when the output file is amongst the input files. In that case that particular file will be appended to
which implies you do not need to store double the amount of data. Obviously the file to append to has to be the one with lowest starting
time since one can only append at the end of a file.
If the -demux option is given, the N trajectories that are read, are written in another order as specified in the .xvg file. The .xvg
file should contain something like:
0 0 1 2 3 4 5
2 1 0 2 3 5 4
Where the first number is the time, and subsequent numbers point to trajectory indices. The frames corresponding to the numbers present at
the first line are collected into the output trajectory. If the number of frames in the trajectory does not match that in the .xvg file
then the program tries to be smart. Beware.
FILES -f traj.xtc Input, Mult.
Trajectory: xtc trr trj gro g96 pdb cpt
-o trajout.xtc Output, Mult.
Trajectory: xtc trr trj gro g96 pdb
-n index.ndx Input, Opt.
Index file
-demux remd.xvg Input, Opt.
xvgr/xmgr file
OTHER OPTIONS
-[no]hno
Print help info and quit
-[no]versionno
Print version info and quit
-nice int 19
Set the nicelevel
-tu enum ps
Time unit: fs, ps, ns, us, ms or s
-xvg enum xmgrace
xvg plot formatting: xmgrace, xmgr or none
-b time -1
First time to use (ps)
-e time -1
Last time to use (ps)
-dt time 0
Only write frame when t MOD dt = first time (ps)
-prec int 3
Precision for .xtc and .gro writing in number of decimal places
-[no]velyes
Read and write velocities if possible
-[no]settimeno
Change starting time interactively
-[no]sortyes
Sort trajectory files (not frames)
-[no]keeplastno
Keep overlapping frames at end of trajectory
-[no]overwriteno
Overwrite overlapping frames during appending
-[no]catno
Do not discard double time frames
SEE ALSO gromacs(7)
More information about GROMACS is available at <http://www.gromacs.org/>.
Mon 4 Apr 2011 trjcat(1)