Hey,
On 12/12/2010 Raoul Bönisch wrote:
> Hi again again.
>
> A way better solution might be this:
>
> OWNER=$(ls -l "$key" | sed
> 's/^[^[:space:]]\{10,12\}[[:space:]]\+[^[:space:]]\+[[:space:]]\+\([^[:space:]]\+\).*/\1/'
>
> It's more future proof than the original method, cause it only
> lo
Hi again again.
A way better solution might be this:
OWNER=$(ls -l "$key" | sed
's/^[^[:space:]]\{10,12\}[[:space:]]\+[^[:space:]]\+[[:space:]]\+\([^[:space:]]\+\).*/\1/'
It's more future proof than the original method, cause it only
looks at space and non-space characters and at most counts th
2 matches
Mail list logo