Quote:
SpellCheck Load Random Example #!/bin/bash file1$ "left - right" sed "s/\(.*\) - \(.2\)/\2 - \1/" file1$ > file2$ echo file2$ Syntax ok but how can I display the results here? Please keep in mind I'm pretty green at RegEx I am referencing all the suggested material given for help. |
Quote:
I refer again to my previous recommendation: ditch MKS Toolkit and just use MinGW (either via MSys2 or Git). Then you will get current versions - and almost certainly the bug in Sed causing your problem will be solved. |
Latest Versions
Quote:
|
Quote:
sed 4.0.7 worked fine. My cygwin\bin ver won't work in my TCC shell but my UnixUtl\bin ver 4.0.7 works. I know you mentioned that before. I will see if GIT works in my TCC shell next. --Thanks |
Yep, I was fairly sure it would - I've used Sed enough on Windows and never had problems with the line ending problem, but it's not surprising that such an old version does.
Also, for clarity, what you're referring to as "GIT" is "Git for Windows", which is a bundle that includes multiple things: Git version control, GNU Bash shell, and mingw-w64 (which provides GNU coreutils and others) - referring to it as either "Git Bash" or "MinGW" should be less confusing. |
Quote:
This gets me over my major hurdles and ready for my next minor steps. --Thanks to All that helped. So far the best help forum I've encountered and it's funny to see some of the same advisors on the other forums! Glad we have people out there taking their time helping us green horns. You haven't heard the last from me...... |
All times are GMT -5. The time now is 07:27 AM. |