User is getting additional ". unmatched" string with returned output of "grep" system command

9 views (last 30 days)
I am a system admin and I have one user that uses a code that loops over a cell array and tries to find each cell entry in a large file (ex. "start_time ="). The output should return something like "start_time = xxxx.xxxxxx" (where x is some number), and it does, except it also returns ". unmatched" with each search result (ex. " . unatched start_time = xxxx.xxxxxx"). The ". matched" string only shows up for her and works fine for everyother user and it causes issues with the rest of the script. It happens wheather you pass the "grep" command to a unix system using the "evalc", "unix", or "system" commands. It also happens on tested versions of R2014a, R2017a, R2018b, or R2019b. It issue only seems to effect her and no other user and I can't seem to track where the source of the problem is coming from. The "grep" command reutrns the correct output without the additional string characters when used in the Linux system terminal window and only happens when Matlab passes the command to the system. Any ideas on what could be the cause of the additional string characters?
  5 Comments
Stephen23
Stephen23 on 1 Sep 2020
I have no idea why that happens, nor can I test it myself. I doubt that many volunteers on this forum would have a detailed knowledge of that particular combination of MATLAB+system commands.
But as system administrator you can ask TMW technical support: their contact details are at top of this page.

Sign in to comment.

Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!