Giter VIP home page Giter VIP logo

ccxxd's Introduction

Coding Challenge: Xxd

This application was created as part of a coding challenge. The challenge details can be found here.

The following resources were used for implementing and understanding the functionality of the xxd command:

Description

A simple xxd-like ("hex dump") cli tool created in Rust. This implementation mimics some, but not all of the functionalities of the original xxd command.

How to Run

To run the ccxxd command line tool, follow these steps:

  1. Clone the repository.
  2. Build the applikcation using cargo build --release. That will generate the executable in the target/release directory called ccxxd.
  3. Run the application.

Arguments

You can run the application with the following arguments:

  • ccxxd -c <input> <output> to specify the number of bytes per line.
  • ccxxd -e <input> <output> to set the little-endian byte order.
  • ccxxd -g <input> <output> to specify the number of bytes per group.
  • ccxxd -l <input> <output> to specify the number of bytes to write.
  • ccxxd -r <input> <output> to reverse the process, reading a hexdump and writing the original file.
  • ccxxd -s <input> <output> to skip a number of bytes.

Notes

The application accepts file paths as the input and output arguments. The input file is the file to be read and the output file is the file to be written to. If the input file is not specified then the application reads from stdin. If the output file is not specified then the application writes to stdout.

ccxxd's People

Contributors

leopoldus97 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.