0
I’m entering this world of regular expressions, I’m having a doubt, I read about metacharacters, etc. Well, I’m trying to validate a zip code and I’m using the following command and I’m not getting it.. i have already replaced d by [0-9] and succeeded, but so am not succeeding:
cat arquivo.txt | grep -E '^\d{5}[-]\d{3}'
In the.txt file you have the line: 02954-852
Grateful.