Re: extfs/iso9660.in
- From: Roland Illig <roland illig gmx de>
- To: Leonard den Ottolander <leonard den ottolander nl>
- Cc: MC Devel <mc-devel gnome org>
- Subject: Re: extfs/iso9660.in
- Date: Wed, 27 Oct 2004 21:43:06 +0200
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
sed...
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 +.
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html
section 9.3.3
Roland
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]