On Tue, Jun 17, 2003 at 02:43:41PM -0700, Bryan Murdock wrote: > I'm looking at some shell scripts a co-worker wrote and there is a line > that looks like this: > > esc=`echo "$arg" | sed "s/'/'\\\\\\\\''/g"` > > I can't figure out why any regular expression would need that many > backslashes. Can any of you?
Hmmm... perhaps it is a self-referential script? :-P
Mike
--
------------------------------------------- | ---------------------
Michael Halcrow | [EMAIL PROTECTED]
Developer, IBM Linux Technology Center |
|
The last word in this sentence is wrong. |
------------------------------------------- | ---------------------
GnuPG Keyprint: 05B5 08A8 713A 64C1 D35D 2371 2D3C FDDA 3EB6 601D
pgp00000.pgp
Description: PGP signature
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
