You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the caffe/tools/extra/parse_log.sh script on my mac, but getting this error:
$ ./tools/extra/parse_log.sh sample-log.log
sed: 1: "aux.txt": command a expects \ followed by text
Debug logs:
+ sed -n '/Iteration .* Testing net/,/Iteration *. loss/p' sample-log.log
+ sed -i '/Waiting for data/d' aux.txt
sed: 1: "aux.txt": command a expects \ followed by text
Am I using this script correctly? If so, are there any guidelines provided regarding this particular issue anywhere? I believe this error is due to the -i flag of sed, which apparently requires an extension of backup to be provided when running on OS X, if I'm not mistaken.
Issue summary
I'm trying to run the
caffe/tools/extra/parse_log.sh
script on my mac, but getting this error:Debug logs:
Am I using this script correctly? If so, are there any guidelines provided regarding this particular issue anywhere? I believe this error is due to the
-i
flag ofsed
, which apparently requires an extension of backup to be provided when running on OS X, if I'm not mistaken.Steps to reproduce
Run this on Mac OS X:
Tried solutions
I tried adding the extension
.bak
to whereversed -i
is being used, like this:This appears to have worked in my local machine, but not sure if it is the right way to do it. If it is, I would be happy to make a PR. :)
System configuration
Issue checklist
The text was updated successfully, but these errors were encountered: