Skip to content

DanCard/5lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

5lines

Log output to a file and limit output of a command to 5 lines
Options:
-n <tail number of lines to output> (optional: log file name)
If log file name is not specified then the first word in output is used for log file name.

Example usage: echo -e "bob\nmike\ndave\nc\n a \n b\n c \n 1\n 2 \n oompa\n loompa" | 5lines -n 23

To compile: gcc -o 5lines 5lines.c -lncurses

About

Limit output of a command to 5 lines.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages