Mercurial > repos > bgruening > text_processing
comparison awk.xml @ 6:8928e6d1e7ba draft
Uploaded
| author | bgruening |
|---|---|
| date | Thu, 08 Jan 2015 09:07:31 -0500 |
| parents | 56e80527c482 |
| children | d64eace4f9f3 |
comparison
equal
deleted
inserted
replaced
| 5:3f0e0d4c15a9 | 6:8928e6d1e7ba |
|---|---|
| 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 |
| 14 -v FS=\$'\t' | 14 -v FS=' ' |
| 15 -v OFS=\$'\t' | 15 -v OFS=' ' |
| 16 --re-interval | 16 --re-interval |
| 17 -f '$awk_script' | 17 -f "$awk_script" |
| 18 "$input" | 18 "$infile" |
| 19 > "$output" | 19 > "$outfile" |
| 20 ]]> | 20 ]]> |
| 21 </command> | 21 </command> |
| 22 <inputs> | 22 <inputs> |
| 23 <param format="txt" name="input" type="data" label="File to process" /> | 23 <param name="infile" format="txt" type="data" label="File to process" /> |
| 24 <param name="url_paste" type="text" area="true" size="5x35" label="AWK Program" help=""> | 24 <param name="code" type="text" area="true" size="5x35" label="AWK Program" help=""> |
| 25 <sanitizer> | 25 <sanitizer> |
| 26 <valid initial="string.printable"> | 26 <valid initial="string.printable"> |
| 27 <remove value="'"/> | 27 <remove value="'"/> |
| 28 </valid> | 28 </valid> |
| 29 </sanitizer> | 29 </sanitizer> |
| 30 </param> | 30 </param> |
| 31 </inputs> | 31 </inputs> |
| 32 <configfiles> | 32 <configfiles> |
| 33 <configfile name="awk_script"> | 33 <configfile name="awk_script">$code</configfile> |
| 34 $url_paste | |
| 35 </configfile> | |
| 36 </configfiles> | 34 </configfiles> |
| 37 <outputs> | 35 <outputs> |
| 38 <data format="input" name="output" metadata_source="input"/> | 36 <data name="outfile" format_source="infile" metadata_source="infile"/> |
| 39 </outputs> | 37 </outputs> |
| 40 <tests> | 38 <tests> |
| 41 <test> | 39 <test> |
| 42 <param name="input" value="unix_awk_input1.txt" /> | 40 <param name="infile" value="awk1.txt" /> |
| 43 <param name="awk_script" value="$2>0.5 { print $2*9, $1 }" /> | 41 <!-- commas are not allowed in a value field. Values with comma will be splitted --> |
| 44 <output name="output" file="unix_awk_output1.txt" /> | 42 <param name="code" value='$2>0.5 { print $2*9"\t"$1 }' /> |
| 45 </test> | 43 <output name="outfile" file="awk_results1.txt" /> |
| 44 </test> | |
| 46 </tests> | 45 </tests> |
| 47 | |
| 48 <help> | 46 <help> |
| 49 <