2) Single quotes have no special meaning in Jess, but double quotes
are string delimiters. They can be escaped with a backslash.
2) Jess has a "format" command that works like
java.lang.String.format().
So putting 2 and 2 together, you might invoke this UNIX command from
Jess like
(system sh -c (format nil "awk '{$1=\"\"; print}' < %s > %s" ?fnamein ?
fnameout))
On Jul 22, 2009, at 11:06 AM, jo wrote:
Hi,
I need to call unix cmds that contain a mix of single and double
quotes.
ie
awk '{$1=""; print }' ?fnamein > ?fnameout
However I have not managed to find a combination of quotes that
works. What is best practice for handling quotes?
Kind Regards,
Joe
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users
[email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected]
.
--------------------------------------------------------------------
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.com
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected].
--------------------------------------------------------------------