Пример #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())
Пример #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())
Пример #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())
Пример #4
0
 def cmd(self, word, out_txt=aof('echo.txt')):
     return '{s[echo_path]} {word} > {out_txt}'.format(s=s, **locals())
Пример #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())
Пример #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())
Пример #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()
     )
Пример #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()
     )
Пример #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()
     )
Пример #10
0
 def cmd(self, word, out_txt=aof('echo.txt')):
     return '{s[echo_path]} {word} > {out_txt}'.format(s=s, **locals())