Add rm utility and improve further
This commit is contained in:
parent
761eb0a5e6
commit
20f776b4bd
4 changed files with 36 additions and 7 deletions
2
head.nim
2
head.nim
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue