Question: How to give a pattern for new line in grep?
New line at beginning, new line at end. Not the regular expression way. Something like \n.

Answer: 
`grep` patterns are matched against individual lines so there is no way for a pattern to match a newline found in the input.

However you can find empty lines like this:

```
grep '^$' file
grep '^[[:space:]]*$' file # include white spaces 

```
just found

```
grep $'\r'

```

It's using `$'\r'` for c-style escape in Bash.

in [this article](https://superuser.com/questions/194668/grep-to-find-files-that-contain-m-windows-carriage-return)