diff cut.xml @ 2:fc862d5bccaf draft

Uploaded
author bgruening
date Thu, 05 Sep 2013 12:42:48 -0400
parents a4ad586d1403
children 7068d1548234
line wrap: on
line diff
--- a/cut.xml	Thu Sep 05 11:42:27 2013 -0400
+++ b/cut.xml	Thu Sep 05 12:42:48 2013 -0400
@@ -4,7 +4,11 @@
         <requirement type="package" version="8.21">gnu_coreutils</requirement>
     </requirements>
     <command>
-        cut -d"${delimiter}" ${complement} ${cut_element} '${list}' '${input}' &gt; '${output}'
+        cut 
+        #if str($delimiter) != '':
+            -d"${delimiter}"
+        #end if
+        ${complement} ${cut_element} '${list}' '${input}' &gt; '${output}'
     </command>
 
     <inputs>