Skip to content

Cat out at given offset with given length in different formats

Notifications You must be signed in to change notification settings

connebrink/ccat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CountCAT

Cat out at given offset with given count/length in different formats

Why, and for what i need it

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 use all 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 to implement a tiny tool like this
to solve this task.

Looks like

Watch the video

How to use

  • ccat -o:2 -a:1 -c:bold tst/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
  • Param -tc: Columncount for hextable
  • Param -HEX Plain hex output
  • Param -HTABLE Hextable output
  • Param -RAW Plain text output
  • .
  • FilePath: Path to file you want printed out

About

Cat out at given offset with given length in different formats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published