What's the difference between using .* and * ??
'*' means "zero or more occurances of the previous pattern.
'.' means an arbitrary character.
'.*' means an arbitrary string of characters, including none.
So, "-.*" means a dash followed by an arbitrary string.
While "-*" means one or more dashes.
Please read the man page on "regex" or "egrep", or both.
> For example:
>
> :0:PG/lock.administrative
> * $ ! ^TOowner-.*$PGHOST
> PG/Administrative
>
> or
>
> :0:PG/lock.administrative
> * $ ! ^TOowner-*$PGHOST
> PG/Administrative