Cat out at given offset with given count/length in different formats
I have huge json and other text files and i have to look sometimes is
something wrong with this files. For example json reader raised exceptions
and so on. And then i have to look why. And for this case i wrote this
small tool.
I know i can you existing great tools like sed and awk and so on. But
sometimes this great command line tools are a little oversized for me and
and i like to code in C++. So why not a tiny tool like this to solve this
task.
- ccat -o:7546 -a:10 -c:bold tst.txt
- .
- Param -o: Offset of file which should printed out
- Param -a: How many chars before and after should printed out too
- Param -c: Color to mark char at offset, bold, red, green or blue
- .
- FilePath: Path to file you want printed out