I have a tab delimited text file where the first column can take on three different values : 100, 150, 250. I want to extract all the rows where the first column is 100 and put them into a separate text file and so on. This is what my text file looks like now:
100 rs3794811 0.01 0.3434... (1 Reply)
I have a tab delimited text file where the first column can take on three different values : 100, 150, 250. I want to extract all the rows where the first column is 100 and put them into a separate text file and so on. This is what my text file looks like now:
100 rs3794811 0.01 0.3434
100... (1 Reply)
I am generating a output:
Name Count_1 Count_2
abc 12 12
def 15 14
ghi 16 16
jkl 18 18
mno 7 5
I am sending the output in html email, I want to add the code:
<font color="red"> NAME COLUMN record </font>
for the Name... (8 Replies)
I have a tab delimited file with 5 columns
79 A B 20.2340 6.1488 8.5086 1.3838
87 A B 0.1310 0.0382 0.0054 0.1413
88 A B 46.1651 99.0000 21.8107 0.2203
89 A B 0.1400 0.1132 0.0151 0.1334
114 A B 0.1088 0.0522 0.0057 0.1083
115 A B... (2 Replies)
I have a space delimited text file with two columns. I would like to add NA to the first column of the text file.
Input:
19625 10.4791768259
19700 10.8146489183
19701 10.9084026759
19702 10.9861346978
19703 10.9304364984
Output:
NA19625 10.4791768259
NA19700 10.8146489183... (1 Reply)
Hi,
I have a tab delimited text file with three different columns. I want to add an extra column to the text file. The extra column will be the second column and it will equal third column - 1. How do I go about doing that? Thanks!
Input:
chr1 788822 rs11240777
chr1 1008567 rs9442372... (2 Replies)
Hi,
I have a tab delimited text file from which I want to cut out specific columns. If the second column equals one, I want to cut out columns 1 and 5 and 6. If the second column equals two, I want to cut out columns 1 and 5 and 7. How do I go about doing that? Thanks! (4 Replies)
Hi,
I would like to add a new column containing the row numbers to a text file. How do I go about doing that? Thanks!
Example input:
A X
B Y
C D
Output:
A X 1
B Y 2
C D 3 (5 Replies)
Hello,
I am very now to this, hope you can help,
I am looking into editing a file in Solaris, with dinamic collums (lenght varies) and I need 2 things to be made, the fist is to filter the first column and third column from the file bellow file.txt, and create a new file with the 2 filtered... (8 Replies)
Hello,
I have a data such as this:
ENSGALG00000000189 329 G A 4 2 0
ENSGALG00000000189 518 T C 5 1 0
ENSGALG00000000189 1104 G A 5 1 0
ENSGALG00000000187 3687 G T 5 1 0
ENSGALG00000000187 4533 A T 4 2 0
ENSGALG00000000233 5811 T C 4 2 0
ENSGALG00000000233 5998 C A 5 1 0
I want to... (3 Replies)
Discussion started by: Homa
3 Replies
LEARN ABOUT DEBIAN
xupdate
XUPDATE(1p) User Contributed Perl Documentation XUPDATE(1p)NAME
xupdate - Process XUpdate commands over an XML document
SYNOPSIS
xupdate [options] <xupdate-file> <input-file>
Options:
-u | --usage print brief help on usage
-h | --help print documentation
-n | --namespace prefix=namespace-uri
associate a namespace with a prefix for use
in XPath selections in XUpdate file
(this option may occur several times)
-k | --keep-ws preserve whitespace in the XUpdate file
-s | --strip-ws strip ignorable whitespace from the input file
-V | --version print current version and revision
-i | --indent indent the output XML
-j | --extra-indent like -i, but also adds a leading and a trailing
linebreak to every text node.
but also put an extra newline after
every start-tag and before every end-tag
OPTIONS --usage Print a brief help message on usage and exits.
--help Prints the manual page and exits.
--namespace prefix=namespace-uri
Associate a namespace with a prefix. The prefix may be used in the XPath selections in the XUpdate file to address nodes of the
source document that belong to the given namespace. This is especially useful for mapping the default namespace to a prefix
because XPath by definition doesn't honour default namespaces. This option may occur several times.
--keep-ws
Preserves any whitespace in XUpdate file. The default behaviour is to remove all ignorable whitespace and any leading or trailing
whitespace in all XUpdate command elements in the XUpdate file.
--strip-ws
Remove "ignorable" whitespace from the input file. The default behaviour is to keep any whitespace unless the --extra-indent (-j)
option is used. Note that the whitespace being present or not may affect results returned by some XPath expressions (such as
/foo/bar/text()[2]).
--version
Print version and revision number of This program command and version number of XML::XUpdate library used.
--indent
Indent the resulting document on output.
--extra-indent
Indent the resulting document on output as --indent, but also add a leading and a trailing linebreak to every text node.
--debug Print some debugging information about commands being applied.
DESCRIPTION
This program will parse the given XUpdate file and the input file and print the input file updated accordingly. XUpdate file format is
described in XUpdate Working Draft from 2000-09-14 (http://www.xmldb.org/xupdate/xupdate-wd.html).
AUTHOR
Petr Pajas, pajas@matfyz.cz
COPYRIGHT
Copyright 2002-2003 Petr Pajas, All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-08-02 XUPDATE(1p)