× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Rather than focus on a solution for this specific situation, what is the goal? Is the \\MCBELL4\... stuff constant or variable? Is any of it constant? Is this ultimately being called from an HLL program (like RPG, maybe), making it possible to utilize a more elegant solution?

Typically what I would do for a situation like this one, is to create a script in the IFS that handles all the escape character stuff.... Or maybe I'd utilize sed's -f <filename> feature, and just do something like:

QSH CMD('sed -f /path/subscscript < infile > outfile)

but these things may not fit your need. Or they might. Caan you describe to us the parameters so we may make a recommendation?

Too many people on lists like this say, I tried to drive this screw into a brick with this hammer, and it's not working for me. How can I make this hammer work?

"hockchai Lim" <lim.hock-chai@xxxxxxxxxxxxxxx> wrote:

it almost looks like the backslash escape character is being processed
twice
(once by qsh and once by sed).

All I know at the moment is that I fed it this
:\\MCBELL4\BossTemp\NewAccount\LHCTEST2ERROR.csv and it splited out
this:
<MCBELL4BossTempNewAccountLHCTEST2ERROR.csv>.

"Dennis Lovelady" <iseries@xxxxxxxxxxxx> wrote in message
news:mailman.35068.1300747685.2702.midrange-l@xxxxxxxxxxxx...
You should be able to get the effect you want my changing quotes (")
to
apostrophes (').

It's the shell, not sed, that's processing the escapes.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
Sent from my Galaxy tablet phone with with K-9 Mail. Please excuse my brevity.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.