Bug#600522: [pkg-cryptsetup-devel] Bug#600522: Better solution

2010-12-16 Thread Jonas Meurer
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

Bug#600522: Better solution

2010-12-12 Thread Raoul Bönisch
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