Linux cli tool - the combination of head and tail with improvements
Tested on Arch linux
with gcc 13.2.1
This progam doesn't have any external dependency, using only C standard library.
IT WILL NOT WORK ON ANY WINDOWS
based system, since it doesn't have and doesn't support unistd.h
!
git clone https://github.com/MAGANER/stringtease.git
cd stringtease/
./build
cat file | stringtease --head 0s
- read first 10 strings from file's beginning
cat file | stringtease --tail 0c -r
- read first 10 characters from file's end and reverse output to make it human-readable
cat file | stringtease --head 6s 10s
- read from 6 to 10 string.