Re: extfs/

Leonard den Ottolander wrote:
Hi Roland,

On Wed, 2004-10-27 at 18:42, Roland Illig wrote:

+$ISOINFO -l -i "$1" | sed -e 's,\[[ ]*[0-9][0-9]*[ ]*[0-9][0-9]*\][ ]*,,' | @AWK@ '

Wouldn't it be better to fix this inside the awk script? Or parse the
whole thing with sed? It seems a bit redundant to use both awk and

Otherwise you might want to replace the above with this (sorry for the
line wrap):
+$ISOINFO -l -i "$1" | sed -e 's,\[[ ]*[0-9]+[ ]+[0-9]+\][ ]*,,' | @AWK@

No, that's not portable. Of course, the GNU sed can do it, but the Solaris sed doesn't. The SUSv3 only requires the *, not the +.
section 9.3.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]