Exemplo n.º 1
0
 def cmd(self,
         chars=False,
         input_txts=aif(format='txt', n='>=1'),
         out_txt=aof('wc.txt')):
     c = ' -c' if chars else ''
     return 'wc{c} {input} > {out_txt}'.format(input=' '.join(
         map(str, input_txts)),
                                               **locals())
Exemplo n.º 2
0
 def cmd(self, in_file=aif(format='*', n=1), out_md5=aof('checksum.md5')):
     out_md5.basename = in_file.basename + '.md5'
     return 'md5sum {in_file}'.format(**locals())
Exemplo n.º 3
0
 def cmd(self,
         input_txts=aif(format='txt', n='>=1'),
         out_txt=aof('paste.txt')):
     return 'paste {input} > {out_txt}'.format(input=' '.join(
         map(str, (input_txts, ))),
                                               **locals())
Exemplo n.º 4
0
 def cmd(self, word, out_txt=aof('echo.txt')):
     return '{s[echo_path]} {word} > {out_txt}'.format(s=s, **locals())
Exemplo n.º 5
0
 def cmd(self, inputs=aif(format='txt', n='>=1'), out_txt=aof('cat.txt')):
     return 'cat {input_str} > {out_txt}'.format(input_str=' '.join(
         map(str, inputs)),
                                                 **locals())
Exemplo n.º 6
0
 def cmd(self, in_file=aif(format='*', n=1), out_md5=aof('checksum.md5')):
     out_md5.basename = in_file.basename + '.md5'
     return 'md5sum {in_file}'.format(**locals())
Exemplo n.º 7
0
 def cmd(self, chars=False, input_txts=aif(format='txt', n='>=1'), out_txt=aof('wc.txt')):
     c = ' -c' if chars else ''
     return 'wc{c} {input} > {out_txt}'.format(
         input=' '.join(map(str, input_txts)),
         **locals()
     )
Exemplo n.º 8
0
 def cmd(self, input_txts=aif(format='txt', n='>=1'), out_txt=aof('paste.txt')):
     return 'paste {input} > {out_txt}'.format(
         input=' '.join(map(str, (input_txts,))),
         **locals()
     )
Exemplo n.º 9
0
 def cmd(self, inputs=aif(format='txt', n='>=1'), out_txt=aof('cat.txt')):
     return 'cat {input_str} > {out_txt}'.format(
         input_str=' '.join(map(str, inputs)),
         **locals()
     )
Exemplo n.º 10
0
 def cmd(self, word, out_txt=aof('echo.txt')):
     return '{s[echo_path]} {word} > {out_txt}'.format(s=s, **locals())