Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lines

A command line utility to print an arbitraty lines of a file.

usage

suppose this is my-file.txt

I     cat
II    dog
III   cow
IV    horse
V     bird
VI    duck
VII   shark
VIII  whale

print the first line of file

$ lines -n1 my-file.txt
I     cat

print from the first line to the 5th line

$ lines -n 1..5 my-file.txt
I     cat
II    dog
III   cow
IV    horse
V     bird

print the last line

$ lines -n -1 my-file.txt
VIII  whale

print the last 3 lines

$ lines -n -3..-1 my-file.txt
VI    duck
VII   shark
VIII  whale

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages