send " ' " (single quote character) via system command?

Kenneth Brody kenbrody at spamcop.net
Mon Dec 8 08:22:56 PST 2014


On 12/8/2014 9:58 AM, James Flanagan wrote:
> I want to thank everybody for chiming in their suggestions.
>
> It turns out that Jim Asman’s suggestion:
>
> Try using chr(39) rather than \' and see if you get any further.

What's wrong with a plain-old nekkid apostrophe?

> was exactly what I needed to make my code work properly.  for those who
> suggested putting the code into an external script, my preference is to
> keep the code within filepro whenever possible for debugging purposes.

What was the final code you ended up using?

> IN ADDITION,
>
> thank you for pointing out the unnecessary use of cat in my code.  Some
> 15 years ago, one of my first unix instructors taught me that method of
> using sed (stream editor) that you first needed to put something in the
> stream (using something such as cat).  for as many times as i have been
> in the man pages of sed, I never noticed that sed can exists as a stand
> alone command.  old habits die hard, but i assure you i will not be
> repeating that one going forward.

Any *nix command which takes its input from stdin can use a file-redirect 
rather than a pipe.  (And stdout as well.)

[...]

-- 
Kenneth Brody


More information about the Filepro-list mailing list