The command mvn -version
outputs the first line in bold.
$ mvn -version
Apache Maven 3.6.0 # Bold text
Maven home: /usr/share/maven
Java version: 1.8.0_242, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-1058-aws", arch: "amd64", family: "unix"
How can I unbold this line and write only that line to output? E.g.:
$ mvn -version | head -n1 | xargs echo -E
Apache Maven 3.6.0 # Still bold
A simpler example:
echo -e "Normal \e[1mBold \e[0mand Normal" | xargs echo -E
outputs "Normal Bold and Normal"
How can the resulting text be "unbolded"?
Bash version: 4.4.20