Skip to content

head -n <endLine> <filename> | tail -n +<begLine> for node.js

Notifications You must be signed in to change notification settings

gpryor/unix-head-tail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unix-head-tail

Build Status

head -n <endLine> <filename> | tail -n +<begLine> for node.js.

var headTail = require('unix-head-tail')

// head -n 7 test.txt | tail -n +3
headTail('test.txt', 3, 7, (err, b) => {
  console.log('test.txt lines 3 to 7 are...')
  console.log(b.toString())
})

About

head -n <endLine> <filename> | tail -n +<begLine> for node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages