I am trying to understand why I can't use awk when invoking the RS= and ORS= options. Is there a better way to do this?

This works:

```
    awk '/password =[[:space:]]*$/' ./test
    awk '/password =  *$/' ./test

```

But I need this to work:

```
    awk -v RS= -v ORS='\n\n' '/password = *$/' ./test

```

Sample file (./test) :

```
    User_Mike1:
           password = 12345678
           somedata = whatever

    User_Mike2:
           password = 12345678
           somedata = whatever

    User_Mike3:
           password = 
           somedata = whatever

    User_Mike4:
           password = 12345678
           somedata = whatever

```

Desired output (the record containing 'password =' i.e. an empty password entry):

```
    User_Mike3:
           password = 
           somedata = whatever

```

I also need the lines with password =\* or password = \* as well. Scratching my head over this one!

EDIT: ANSWER

I think my problem was with the file itself, I added new lines manually and the script worked correctly.. 

In my case I want the records with password =\* password = \* password = or login = false:

```
    awk -v RS= -v ORS='\n' '/password = [*]/ || /password =[*]/ || /login = false/ || /password = \n/'

```