title: How to reverse the output of the grep command?
body: <p>i have one problem with grep command. in my called script i use:</p>
  
  <pre><code>   "ServicePassword":fooooooooooo
     "ServiceUserName":barrrrrrrrr
  grep -E '"ServiceUserName"|"ServicePassword"' &gt;&gt; user.txt
  </code></pre>
  
  <p>but in user.txt file i will get first "ServicePassword":fooooooooooo then "ServiceUserName":barrrrrrrrr 
  How can i use grep command to reverse it to get first ServiceUserName then ServicePassword output in user.txt file ? I need it only this sequence. i try to change:</p>
  
  <pre><code>grep -E '""ServicePassword""|"ServiceUserName"' &gt;&gt; user.txt
  </code></pre>
  
  <p>and nothing.... maybe exist a better solution? </p>