esevan / env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install

curl https://raw.githubusercontent.com/esevan/env/master/esevan_confg.sh > esevan_config.sh
chmod +x esevan_config.sh
./esevan_config.sh

About following of this document

This documentation includes what I use a lot but forget a lot too.

Contents

  1. Generate random code in shell (python code)
  2. Find string in the files under the directory

Generate random code

$ python -c "import string; import random; print(\"etcd-cluster-\" + ''.join(random.SystemRandom().choice(string.ascii_lowercase + string.digits) for _ in range(5)))"

Find string in the files under the directory

$ find ./ -type f |xargs gre "str"

About


Languages

Language:Shell 88.5%Language:Vim Script 11.5%