Issue
I am doing an assignment and there is a part that says to put in this command that is supposed to pipe results and search for uppercase letters.
Here is the command it says to put in:
grep -E "[a-z]" rawpassword.txt | grep – E "[A-Z]" >passwd.txt
but whenever I put it in I get the error "[A-Z]": No such file or directory.
Is there a typo in the command or something?
Solution
suggestion 1:
grep "[a-z]" rawpassword.txt | grep "[A-Z]" >passwd.txt
suggestion 2:
awk '/[a-z]/ && /[A-Z]/' rawpassword.txt >passwd.txt
Answered By - Dudi Boy Answer Checked By - Clifford M. (WPSolving Volunteer)