Add rm utility and improve further

This commit is contained in:
joachimschmidt557 2019-03-27 11:49:48 +01:00
parent 761eb0a5e6
commit 20f776b4bd
4 changed files with 36 additions and 7 deletions

View file

@ -2,6 +2,8 @@ import cligen, os, streams
import common
proc main(files:seq[string], lines=10, bytes=0) =
# if files.len == 0:
# files.add "-"
for file in files:
var s = newFileStream(file, fmRead)
if bytes > 0: