lex

Lexical analyzer generator. Given the specification for a lexical analyzer, generates C code implementing it. NOTE: on most major OSes, this command is an alias for flex. More information: <https://manned.org/lex.1>.

Debian Debian
RUN apt-get update && \ apt-get install -y flex
Ubuntu
RUN apt-get update && \ apt-get install -y flex
Alpine
RUN apk add flex
Arch Arch Linux
RUN pacman -S --noconfirm flex
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y flex
CentOS
RUN yum install -y flex
Fedora
RUN dnf install -y flex
Raspbian
RUN apt-get update && \ apt-get install -y flex
click the source code to copy install lex on any operating system with command-not-found.com