[go: up one dir, main page]

Skip to content

Censors or hides shell / Bash / console output based on defined patterns - great for hiding secrets in demos!

License

Notifications You must be signed in to change notification settings

iann0036/censor-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

censor-shell

Installation

go install

Usage

Make the file ~/.censor-shell as an INI file with the following content:

[nameofmyreplacement]
pattern = badword
replacement = goodword

[anotherpattern]
pattern = abc([a-z]+)ghi
replacement = zyx${1}tsr

You can specify any amount of replacement rules as you like. Patterns and replacement follow standard Go regexp formats.

Now open a new shell and execute the censor-shell command. You'll be able to see that all outputs are replaced dynamically:

> echo badword
goodword
> echo abcdefghi
zyxdeftsr

About

Censors or hides shell / Bash / console output based on defined patterns - great for hiding secrets in demos!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Languages