'This command to pipe results and search for uppercase letters is not working. Getting "no such file or directory" error
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 1:[1]
suggestion 1:
  grep "[a-z]" rawpassword.txt | grep  "[A-Z]" >passwd.txt
suggestion 2:
  awk '/[a-z]/ && /[A-Z]/' rawpassword.txt >passwd.txt
    					Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source | 
|---|---|
| Solution 1 | Dudi Boy | 
