annotate cut.xml @ 1:a4ad586d1403 draft

Uploaded
author bgruening
date Thu, 05 Sep 2013 11:42:27 -0400
parents ec66f9d90ef0
children fc862d5bccaf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
1 <tool id="unixtools_cut_tool" name="Cut" version="0.1.1">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
2 <description>columns from a table</description>
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
3 <requirements>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
4 <requirement type="package" version="8.21">gnu_coreutils</requirement>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
5 </requirements>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
6 <command>
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
7 cut -d"${delimiter}" ${complement} ${cut_element} '${list}' '${input}' &gt; '${output}'
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
8 </command>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
9
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
10 <inputs>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
11 <param format="txt" name="input" type="data" label="file to cut" />
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
12 <param name="complement" type="select" label="Operation">
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
13 <option value="">Keep</option>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
14 <option value="--complement">Discard</option>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
15 </param>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
16
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
17 <param name="delimiter" type="select" label="Delimited by">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
18 <option value="">Tab</option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
19 <option value=" ">Whitespace</option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
20 <option value=".">Dot</option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
21 <option value=",">Comma</option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
22 <option value="-">Dash</option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
23 <option value="_">Underscore</option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
24 <option value="|">Pipe</option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
25 </param>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
26
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
27 <param name="cut_element" type="select" label="Cut by">
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
28 <option value="-f">fields</option>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
29 <option value="-c">characters</option>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
30 <option value="-b">bytes</option>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
31 </param>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
32
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
33 <param name="list" type="text" size="20" value="" label="List of Fields/Characters/Bytes" help="These will be kept/discarded (depending on 'operation'). &lt;BR /&gt; Examples: 1,3,4 or 2-5">
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
34 <sanitizer>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
35 <valid initial="string.printable">
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
36 <remove value="&apos;"/>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
37 </valid>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
38 </sanitizer>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
39 </param>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
40 </inputs>
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
41 <outputs>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
42 <!--<data format="tabular" name="output" />-->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
43 <!-- WIP, not sure that will work with the complement option -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
44 <data format="tabular" name="output">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
45 <actions>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
46 <conditional name="cut_element">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
47 <when value="-f">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
48 <conditional name="delimiter">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
49 <when value="T">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
50 <conditional name="input">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
51 <when datatype_isinstance="interval">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
52 <action type="format" default="tabular">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
53 <option type="from_param" name="list" column="0" offset="0"> <!-- chromCol is 1-->
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
54
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
55 <filter type="insert_column" column="0" value="interval"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
56 <filter type="insert_column" ref="list" /> <!-- startCol -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
57 <filter type="insert_column" ref="list" /> <!-- endCol -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
58
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
59 <filter type="multiple_splitter" column="1" separator=","/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
60 <filter type="column_strip" column="1"/> <!-- get rid of all external whitespace -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
61 <filter type="string_function" column="1" name="lower" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
62 <filter type="param_value" column="1" value="^c\d{1,}$" compare="re_search" keep="True"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
63 <filter type="column_strip" column="1" strip="c"/> <!-- get rid of c's -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
64 <filter type="boolean" column="1" cast="int" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
65
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
66 <filter type="multiple_splitter" column="2" separator=","/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
67 <filter type="column_strip" column="2"/> <!-- get rid of all external whitespace -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
68 <filter type="string_function" column="2" name="lower" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
69 <filter type="param_value" column="2" value="^c\d{1,}$" compare="re_search" keep="True"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
70 <filter type="column_strip" column="2" strip="c"/> <!-- get rid of c's -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
71 <filter type="boolean" column="2" cast="int" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
72
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
73 <filter type="multiple_splitter" column="3" separator=","/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
74 <filter type="column_strip" column="3"/> <!-- get rid of all external whitespace -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
75 <filter type="string_function" column="3" name="lower" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
76 <filter type="param_value" column="3" value="^c\d{1,}$" compare="re_search" keep="True"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
77 <filter type="column_strip" column="3" strip="c"/> <!-- get rid of c's -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
78 <filter type="boolean" column="3" cast="int" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
79
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
80 <filter type="metadata_value" ref="input" name="chromCol" column="1" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
81 <filter type="metadata_value" ref="input" name="startCol" column="2" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
82 <filter type="metadata_value" ref="input" name="endCol" column="3" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
83
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
84 </option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
85 </action>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
86
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
87 <conditional name="output">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
88 <when datatype_isinstance="interval">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
89 <action type="metadata" name="chromCol">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
90 <option type="from_param" name="list" column="0" offset="0"> <!-- chromCol is 0-->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
91 <filter type="multiple_splitter" column="0" separator=","/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
92 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
93 <filter type="string_function" column="0" name="lower" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
94 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
95 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
96 <filter type="insert_column" value="1" iterate="True" column="0"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
97 <filter type="boolean" column="1" cast="int" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
98 <filter type="metadata_value" ref="input" name="chromCol" column="1" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
99 </option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
100 </action>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
101
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
102 <action type="metadata" name="startCol">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
103 <option type="from_param" name="list" column="0" offset="0"> <!-- startCol is 0-->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
104 <filter type="multiple_splitter" column="0" separator=","/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
105 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
106 <filter type="string_function" column="0" name="lower" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
107 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
108 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
109 <filter type="insert_column" value="1" iterate="True" column="0"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
110 <filter type="boolean" column="1" cast="int" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
111 <filter type="metadata_value" ref="input" name="startCol" column="1" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
112 </option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
113 </action>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
114
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
115 <action type="metadata" name="endCol">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
116 <option type="from_param" name="list" column="0" offset="0"> <!-- endCol is 0-->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
117 <filter type="multiple_splitter" column="0" separator=","/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
118 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
119 <filter type="string_function" column="0" name="lower" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
120 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
121 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
122 <filter type="insert_column" value="1" iterate="True" column="0"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
123 <filter type="boolean" column="1" cast="int" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
124 <filter type="metadata_value" ref="input" name="endCol" column="1" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
125 </option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
126 </action>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
127
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
128 <action type="metadata" name="nameCol" default="0">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
129 <option type="from_param" name="list" column="0" offset="0"> <!-- nameCol is 0-->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
130 <filter type="multiple_splitter" column="0" separator=","/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
131 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
132 <filter type="string_function" column="0" name="lower" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
133 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
134 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
135 <filter type="insert_column" value="1" iterate="True" column="0"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
136 <filter type="boolean" column="1" cast="int" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
137 <filter type="metadata_value" ref="input" name="nameCol" column="1" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
138 </option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
139 </action>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
140
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
141 <action type="metadata" name="strandCol" default="0">
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
142 <option type="from_param" name="list" column="0" offset="0"> <!-- strandCol is 0-->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
143 <filter type="multiple_splitter" column="0" separator=","/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
144 <filter type="column_strip" column="0"/> <!-- get rid of all external whitespace -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
145 <filter type="string_function" column="0" name="lower" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
146 <filter type="param_value" column="0" value="^c\d{1,}$" compare="re_search" keep="True"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
147 <filter type="column_strip" column="0" strip="c"/> <!-- get rid of c's -->
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
148 <filter type="insert_column" value="1" iterate="True" column="0"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
149 <filter type="boolean" column="1" cast="int" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
150 <filter type="metadata_value" ref="input" name="strandCol" column="1" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
151 </option>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
152 </action>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
153 </when>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
154 </conditional>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
155
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
156 </when>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
157 </conditional>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
158 </when>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
159 </conditional>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
160 </when>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
161 </conditional>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
162 </actions>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
163 </data>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
164 </outputs>
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
165 <tests>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
166 <test>
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
167 <param name="list" value="1,4,2,3"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
168 <param name="delimiter" value="T"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
169 <param name="input" value="1.bed"/>
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
170 <output name="output" file="eq-cut.dat"/>
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
171 </test>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
172 <test>
1
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
173 <param name="list" value="1,4,2-3" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
174 <param name="delimiter" value="T" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
175 <param name="input" value="1.bed" />
a4ad586d1403 Uploaded
bgruening
parents: 0
diff changeset
176 <output name="output" file="eq-cut.dat" />
0
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
177 </test>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
178 </tests>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
179
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
180 <help>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
181
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
182 **What it does**
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
183
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
184 This tool runs the **cut** unix command, which extract or delete columns from a file.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
185
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
186 -----
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
187
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
188 Field List Example:
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
189
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
190 **1,3,7** - Cut specific fields/characters.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
191
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
192 **3-** - Cut from the third field/character to the end of the line.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
193
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
194 **2-5** - Cut from the second to the fifth field/character.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
195
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
196 **-8** - Cut from the first to the eight field/characters.
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
197
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
198
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
199 Input Example::
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
200
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
201 fruit color price weight
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
202 apple red 1.4 0.5
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
203 orange orange 1.5 0.3
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
204 banana yellow 0.9 0.3
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
205
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
206
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
207 Output Example ( **Keeping fields 1,3,4** )::
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
208
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
209 fruit price weight
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
210 apple 1.4 0.5
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
211 orange 1.5 0.3
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
212 banana 0.9 0.3
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
213
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
214 Output Example ( **Discarding field 2** )::
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
215
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
216 fruit price weight
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
217 apple 1.4 0.5
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
218 orange 1.5 0.3
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
219 banana 0.9 0.3
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
220
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
221 Output Example ( **Keeping 3 characters** )::
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
222
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
223 fru
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
224 app
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
225 ora
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
226 ban
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
227
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
228 </help>
ec66f9d90ef0 initial uploaded
bgruening
parents:
diff changeset
229 </tool>