txt2regex command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
txt2regex: command not found
or when using sudo you get the following error message
sudo: txt2regex: command not found
Solutions to txt2regex: command not found
How To Fix txt2regex: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu txt2regex is provided by txt2regex package.
txt2regex is:
^txt2regex$ is a Regular Expression “wizard”, all written with bash2 builtins, that converts human sentences to RegExs. With a simple interface, you just answer to questions and build your own RegEx for a large variety of programs, like awk, emacs, grep, perl, php, procmail, python, sed and vim. There are more than 20 supported programs.
To fix this problem, we can install more using the command below.
sudo apt-get -y install txt2regex
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install txt2regex.
sudo apt -y install txt2regex
Or if you have aptitude installed you can use the following command.
sudo aptitude install txt2regex
Summary
In this tutorial we learn how to fix txt2regex command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.