07-31-2014
Thanks RudiC.
I want to do it using loop, could you please help me out in some other way because sorting is not successful every time as data is different each time.
On my machine my code is not working, please assist with some other code having the same functionality. I need it urgently.
Thank you.
Last edited by Mannu2525; 07-31-2014 at 05:38 PM..
Reason: Mistake
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a machine A NFS mounted on machine B
I am doing a build from machine B on the MFS mounted dir of machine A but I keep getting the following:
NFS server A not responding still trying.
I go to machine A and can log onto machine A and everything seems fine.
How do I go about finding... (6 Replies)
Discussion started by: brv
6 Replies
2. Shell Programming and Scripting
Hi All,
read dif
echo `date +%Y%m%d`|./add $dif|./fmtdt %mon%dd
The above script is for adding days to current date to find the new date. This script divides the current date into 20060220(YYYYMMDD) format and pass this output to add script. The add script will add the days to the... (2 Replies)
Discussion started by: muthu_nix
2 Replies
3. UNIX for Dummies Questions & Answers
Hi, I have 600 text files. In each txt file, I have 3 columns, e.g:
File 1
a 0.21 0.003
b 0.34 0.004
c 0.72 0.002
File 2
a 0.25 0.0083
b 0.38 0.0047
c 0.79 0.00234
File 3
a 0.45 0.0063
b 0.88 0.0027
c 0.29 0.00204
...
my filename as "sc2408_0_5278.txt sc2408_0_5279.txt... (2 Replies)
Discussion started by: libenhelen
2 Replies
4. Shell Programming and Scripting
hi,
i used paste file1.txt file2.txt > file3.txt to merge 2 columns from file1 and 4 columns from file2.
file1
scaffold_217 scaffold_217
file2
CHRSM N scaffold_217.pf scaffold_217.fsa
the result is as follows:-
scaffold_217 scaffold_217
CHRSM ... (6 Replies)
Discussion started by: redse171
6 Replies
5. Shell Programming and Scripting
Hi all,
I have list of two kind of files and I want to compare the rows and print the merged data by applying if condition.
First kind of file looks like:
and second kind of file looks like :
I want to print the rows present in second file followed by 3 more columns from first... (6 Replies)
Discussion started by: CAch
6 Replies
6. Shell Programming and Scripting
I am working on a problem in which I need to merge 4 files (say f1,f2,f3 & f4 log files) & then prepare a final file.
1) If the final file created has size more than 1 GB then need to throw error (display error).
2) Need to check after every merge (say f1 + f2, f1 + f2 + f3) that whether... (2 Replies)
Discussion started by: nrm
2 Replies
7. UNIX for Advanced & Expert Users
Hello Folks,
i have to write shell scripting for given expected output manner.
in given input we have to write shell script in such a way that sequence no can b merged/link between start and end digit with hyphen "-" symbol and rest of digit separated by ","
Eg :
For Input "2 6 7 8 11 12... (9 Replies)
Discussion started by: panchalh
9 Replies
8. Linux
I'm trying to performance tune the I/O of my web server, which is at 41.1% reads merged (If my math is correct), which seems a tad high to just be going along with the defaults. Will modifying read_ahead_kb affect the value of "reads merged" in diskstats? If not, what's a good way of tracking... (2 Replies)
Discussion started by: thmnetwork
2 Replies
9. Shell Programming and Scripting
i have a file in the format
acti_id|signature
1|abc
def
xyz
2|lmn
pqr
lmn
3|ggg
ppp
mmm
it is in csv format
i want the file in the format
act_id|signature
1|abcdefxyz
2|lmnpqrlmn
3|gggpppmmm
i have tried awk but without much success. i replaced the new line with null but it... (10 Replies)
Discussion started by: djrulz123
10 Replies
10. UNIX for Beginners Questions & Answers
Like to have shell script to Read the given file contents into a merged one file with header of path+file name followed by file contents into a single output file.
While reading and merging the file contents into a single file, Like to keep the format of the source file.
... (4 Replies)
Discussion started by: Siva SQL
4 Replies
LEARN ABOUT DEBIAN
xgfmerge
XGFMERGE(1) General Commands Manual XGFMERGE(1)
NAME
xgfmerge - merges two Xgridfit program files
SYNOPSIS
xgfmerge [options] file-a file-b [...]
DESCRIPTION
Xgfmerge merges two or more Xgridfit program files, where file-a is a program generated automatically from an existing font using TTX and
ttx2xgf, and file-b and any other files in the list contain other programming for the font. Xgfmerge outputs the merged programming to
stdout. To capture the output in a file, use this syntax:
$xgfmerge -o merged-file.xgf file-a.xgf file-b.xgf
Note: To merge Xgridfit instructions with those already in a font, the best method is now to run Xgridfit in merge-mode (option -m).
OPTIONS
-c Look for a <default type="compile-globals"/> element in each file after the first in the list. If value="no" then ignore all
<default>, <control-value>, <function>, <macro> and <pre-program> elements in the file.
-h Display a help message.
-n Merge <no-compile> elements from all files. <glyph> elements with duplicate "ps-name" attributes are ignored.
-o file
The file to write the output to. If this option is not used, output is written to stdout.
-p When a <pre-program> element in a file other than file-a is available, use it instead of the one from file-a. If this option is not
present, xgfmerge merges the programming in the <pre-program> of file-a with that in the <pre-program> of whichever file is being
merged at the moment. The result is unlikely to be good if a single run of xgfmerge merges the contents of more than two <pre-
program> elements.
-s Sort <glyph> elements in the output file into alphabetical order.
-v Verbose output: xgfmerge tells you what it is doing at each step.
-x Resolve XIncludes before merging all files in the list except for file-a. Any XIncludes from file-a.xgf are stripped out of the
files before this operation is performed. If XInclude is used to bring global elements (<control-value>, <function>, etc.) into
these files, it is probably a good idea to use the -c option as well.
FILES
/usr/share/xml/xgridfit/util/merge.xsl
An XSLT script that performs the merge.
/usr/share/xml/xgridfit/util/xinclude.xsl
An XSLT script that strips out unwanted XIncludes.
/usr/share/xml/xgridfit/util/sort-glyphs.xsl
An XSLT script that sorts glyph elements in a file.
/usr/share/xml/xgridfit/utils/add-blanks.sed
Does some formatting of the output.
SEE ALSO
xgridfit(1), ttx(1), ttx2xgf(1).
AUTHOR
Xgfmerge was written by Peter Baker <psb6m@virginia.edu>.
This manual page was written by Peter Baker
2009-12-18 XGFMERGE(1)