Project

charsat

0.0
No commit activity in last 3 years
No release in over 3 years
A tool to read characters from stdin using 1-based indexing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0

Runtime

>= 0
 Project Readme

CharsAt

A tool to read characters from stdin using 1-based indexing.

I use this for printing n characters from long, complex passwords for certain (banking) sites that require it

For example:

  • Open password manager
  • Copy complex password to clipboard
  • Pipe clipboard content into this tool

Installation

gem install charsat

Usage

charsat 1 2 3 # Will prompt for a string and then print the 1st, 2nd and 3rd character
echo 'hello world' | charsat 1 7 # Prints h, w

License

The gem is available as open source under the terms of the MIT License.