Mercurial > repos > bgruening > text_processing
comparison awk.xml @ 5:20344ce0c811 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
author | bgruening |
---|---|
date | Wed, 23 Nov 2016 15:56:41 -0500 |
parents | 5314e5d6f040 |
children | 60edf2f8c28f |
comparison
equal
deleted
inserted
replaced
4:288462ec2630 | 5:20344ce0c811 |
---|---|
1 <tool id="tp_awk_tool" name="Text reformatting" version="@BASE_VERSION@.0"> | 1 <tool id="tp_awk_tool" name="Text reformatting" version="@BASE_VERSION@.0"> |
2 <description>with awk</description> | 2 <description>with awk</description> |
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="requirements"> | 6 <requirements> |
7 <requirement type="package" version="4.1.0">gnu_awk</requirement> | 7 <requirement type="package" version="4.1.3">gawk</requirement> |
8 </expand> | 8 </requirements> |
9 <version_command>awk --version | head -n 1</version_command> | 9 <version_command>awk --version | head -n 1</version_command> |
10 <command> | 10 <command> |
11 <![CDATA[ | 11 <![CDATA[ |
12 awk | 12 awk |
13 --sandbox | 13 --sandbox |
17 -f "$awk_script" | 17 -f "$awk_script" |
18 "$infile" | 18 "$infile" |
19 > "$outfile" | 19 > "$outfile" |
20 ]]> | 20 ]]> |
21 </command> | 21 </command> |
22 <configfiles> | |
23 <configfile name="awk_script">$code</configfile> | |
24 </configfiles> | |
22 <inputs> | 25 <inputs> |
23 <param name="infile" format="txt" type="data" label="File to process" /> | 26 <param name="infile" format="txt" type="data" label="File to process" /> |
24 <param name="code" type="text" area="true" size="5x35" label="AWK Program" help=""> | 27 <param name="code" type="text" area="true" size="5x35" label="AWK Program" help=""> |
25 <sanitizer> | 28 <sanitizer> |
26 <valid initial="string.printable"> | 29 <valid initial="string.printable"> |
27 <remove value="'"/> | 30 <remove value="'"/> |
28 </valid> | 31 </valid> |
29 </sanitizer> | 32 </sanitizer> |
30 </param> | 33 </param> |
31 </inputs> | 34 </inputs> |
32 <configfiles> | |
33 <configfile name="awk_script">$code</configfile> | |
34 </configfiles> | |
35 <outputs> | 35 <outputs> |
36 <data name="outfile" format_source="infile" metadata_source="infile"/> | 36 <data name="outfile" format_source="infile" metadata_source="infile"/> |
37 </outputs> | 37 </outputs> |
38 <tests> | 38 <tests> |
39 <test> | 39 <test> |
59 | 59 |
60 **Further reading** | 60 **Further reading** |
61 | 61 |
62 - Awk by Example (http://www.ibm.com/developerworks/linux/library/l-awk1.html) | 62 - Awk by Example (http://www.ibm.com/developerworks/linux/library/l-awk1.html) |
63 - Long AWK tutorial (http://www.grymoire.com/Unix/Awk.html) | 63 - Long AWK tutorial (http://www.grymoire.com/Unix/Awk.html) |
64 - Learn AWK in 1 hour (http://www.selectorweb.com/awk.html) | |
65 - awk cheat-sheet (http://cbi.med.harvard.edu/people/peshkin/sb302/awk_cheatsheets.pdf) | |
66 - Collection of useful awk one-liners (http://student.northpark.edu/pemente/awk/awk1line.txt) | |
67 | 64 |
68 ----- | 65 ----- |
69 | 66 |
70 **AWK programs** | 67 **AWK programs** |
71 | 68 |