예제 #1
0
파일: tools.py 프로젝트: jakirkham/Cosmos2
 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
파일: tools.py 프로젝트: jakirkham/Cosmos2
 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
파일: tools.py 프로젝트: jakirkham/Cosmos2
 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
파일: tools.py 프로젝트: jakirkham/Cosmos2
 def cmd(self, word, out_txt=aof('echo.txt')):
     return '{s[echo_path]} {word} > {out_txt}'.format(s=s, **locals())
예제 #5
0
파일: tools.py 프로젝트: jakirkham/Cosmos2
 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())