Just a simple question.
Why this bash command works properly on Ubuntu Server and finds out the ISBN code and doesn't work on my Ubuntu Desktop? Both systems are 22.04 LTS.
echo "ISBN 5-02-013850-9" | awk '/ISBN [0-9]{1}-[0-9]{2}-[0-9]{6}-[Xx0-9]{1}/ {print $0}'
Thanks in advance.
dpkg -S $(which awk)
-- which package doesawk
come from? On my systems, it isn't from a package. – dannyman Jul 27 '22 at 00:07dpkg -S $(which awk)
may no longer work as expected (depending on the order of/bin
and/usr/bin
in yourPATH
). See for example Where does /usr/bin/grep come from in Ubuntu Focal – steeldriver Jul 27 '22 at 00:23