Skip to content

nanonaren/getlines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Program to fetch particular lines from a file.

USAGE:

1) cat linenumbers | ./getlines file

2) echo 1 3 100 | ./getlines -n file

NOTE:
1) Line numbers can be separated by space, tab or newline.
2) Line numbers do not need to be sorted. They are sorted internally.
   However, if the line numbers are sorted then you can supply the -n
   flag to prevent sorting.

About

Extract particular lines from file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published