× 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.



Hi all,



I am having trouble with QShell's sed today. I use this tool (sed) on a
regular basis, just never for hex values. My problem is that I have an IFS
file with %0D%25 at the end of each line that I would like to have converted
to x'25'. The problem is that no matter what I try it doesn't seem to work
for me (personally I think sed hates me, but that's another topic :-). I
might be having a bad Monday and simply need another set of eyes.



None of these work for me. The replace-value in the regex is always taken
literally (minus the backslash):

sed s/%0D%25/x'25'/g /file1.txt > /file1.txt.tmp

sed s/%0D%25/\x'25'/g /file1.txt > /file1.txt.tmp

sed s/%0D%25/\r/g /file1.txt > /file1.txt.tmp

sed s/%0D%25/\n/g /file1.txt > /file1.txt.tmp

sed s/%0D%25/\x25/g /file1.txt > /file1.txt.tmp



Can somebody bring rest to my frustration?



Aaron Bartell

http://mowyourlawn.com






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.