/stringtease

Linux cli tool - the combination of head and tail with improvements

Primary LanguageCGNU General Public License v3.0GPL-3.0

stringtease

Linux cli tool - the combination of head and tail with improvements

Notes

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!

How to build

git clone https://github.com/MAGANER/stringtease.git
cd stringtease/
./build

How to use

Examples

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.