Skip to content
/ chtxt Public

Simple linux terminal tool for changing the content of files in terminal with fairly rich synthax.

Notifications You must be signed in to change notification settings

Necoo33/chtxt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Change Text

This program is a simple tool for changing the content of files in terminal with fairly rich synthax.

It warns and asks you to how you proceed in order to prevent you to make mistakes.

The synthax is that:

(binary) (text you want to replace) (text you want to put) (path specifier)

Cross Platform Support

Although it's firstly meant for linux, since it's not contains a platform specific api, it also could work on other major platforms.

Some examples:

chtxt "hello" "world"

It changes every "hello" chunk with "world" in every file on your current working directory.

chtxt "hello" "world" ../

It changes every "hello" chunk with "world" in every file on parent directory.

chtxt "hello" "world" blabla

It changes every "hello" chunk with "world" in "blabla" file on your current working directory.

chtxt "hello" "world" ../blabla

It changes every "hello" chunk with "world" in "blabla" file on your parent directory.

chtxt "hello" --empty

It deletes every "hello" chunk in every file in current working directory. It also works with that flags: --delete, -empty, -delete, -e, -d

chtxt "hello" --empty blabla

It deletes every "hello" chunk in "blabla" file on your current working directory. It also works with that flags: --delete, -empty, -delete, -e, -d

chtxt "hello" "world" ./blabla/blablabla ./blabla/blablablabla ...

It changes every "hello" chunk with "world" in files on specified paths.

chtxt "hello" "world" ../blabla ../blablabla ...

It changes every "hello" chunk with "world" in files on specified path, also works for parent directories.

About

Simple linux terminal tool for changing the content of files in terminal with fairly rich synthax.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages