The 22/11/11, Joerg Schilling wrote: > You seem to miss the fact that you are using gsed instead of sed. > > using -r makes scripts non-portable.
You seem to miss the fact that the OP didn't asked for a portable script and didn't even talked about any system specification. So, it's _welcome_ to suppose he's using the most available implementation of sed on Linux distribution which is GNU sed. -- Nicolas Sebrecht