I am receiving the following error:
awk: cmd. line:1: (FILENAME=- FNR=798) warning: Invalid multibyte data detected. There may be a mismatch between your data and your locale.
The command I'm running is the following:
cat file.txt | awk 'length($0)<10000' > output-file.txt
The weird part is that if I pipe to other commands like awk '{ sub("\r$", ""); print }'
, it works just fine without an error.
Anyone see why I would get this error? Or, should I just ignore it?
LC_ALL=C awk 'length($0)<10000' file.txt >output-file.txt
– heemayl Oct 14 '16 at 18:11