Reputation
11,694
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
13 55 95
Impact
~2.9m people reached

Nov
22
revised How to match everything from after the last YAML delimiter onwards
edited title
Nov
22
revised How to match everything from after the last YAML delimiter onwards
added 11 characters in body
Nov
22
comment How to match everything from after the last YAML delimiter onwards
Let us continue this discussion in chat.
Nov
22
comment How to match everything from after the last YAML delimiter onwards
@slhck It's not that his question wasn't defined well it's that his question defined a different problem to one he wanted. And his question still has something that's not his problem (the not matching three dashes,he can match them now). And the inability to match three dashes is a different problem to the one he wants.His question was defined but his words defined a different or additional problem to the one he was talking about re dumping text after a pattern(and his wording saying he wanted to match from, then it turning out he meant from after, was changing the definition, not clarifying)
Nov
22
comment How can I send e-mails via Gmail SMTP via OpenSSL (on Windows)?
so I think that line means that the -crlf option translates an LF from the openssl s_client program (and that LF will be given whether it's a windows port or *nix port), it translates it into a CRLF. smtp.gmail.com requires CRLF. And i'm on Windows with a cygwin openssl port, connecting to smtp.gmail.com with openssl s_client and it only worked with -crlf. But I got the idea of doing that, from your answer. So now it accepts the DATA command. Spot on with the R too I found that moments before reading your answer, but that's a very important point you make.
Nov
22
comment How to match everything from after the last YAML delimiter onwards
@slhck Why can't the OP ask a new question rather than expect everybody to delete their answers.. Perhaps his old question can be of use to others? (and if not, then does the site really want questions that are only of use to the one person asking them?)
Nov
22
comment How can I send e-mails via Gmail SMTP via OpenSSL (on Windows)?
+1 Almost spot on.. BUT, re your point 2, what did it for me was doing -crlf and that was on windows. I don't think it makes a difference what your OS is. It'd a question of what the server supports as your quote of documentation suggests. Even in Windows, a command - any command - a unix port of a command e.g. something in gnuwin32 could use just LF, it could produce a file with LF rather than CRLF. No command/program has to use the OS's favorite of CRLF or LF. So my guess is openssl s_client by default uses LF, and can be made to use CRLF.
Nov
21
revised How to match everything from after the last YAML delimiter onwards
added the word 'after' to clarify his question
Nov
21
revised How to match everything from after the last YAML delimiter onwards
deleted 51 characters in body
Nov
21
comment How to match everything from after the last YAML delimiter onwards
@slhck his problem is what he described in comment and chat..just above your comment, and is clear in his updated question. However, his question is still not very up to date. The '---' isn't much of a problem because he dealt with it doing one of my suggestions. It's not clear which one he used. But he said in comment that his output was --- and the line that followed it.So he has no issue with grepping for --- anymore.And as mentioned, -A1 isn't really what he is looking for, as that'd include the pattern and he doesn't want to do that.As4my answer,I answered the question he asked then.
Nov
21
comment RAM Usage is insane running a game
It looks like the game is meant to be using that insane amoutn of memory. According to this post by some guy tomshardware.co.uk/answers/id-2139695/… He has 2.45GB-2.85GB used by BF4 So compared to him you're doing very well!
Nov
21
revised RAM Usage is insane running a game
added his pic
Nov
21
comment RAM Usage is insane running a game
what game? give a screenshot showing this usage
Nov
20
comment What would prevent a .BAT file from being run on a mapped drive?
Googling the error message he gave, shows it is an OS error. You write " the batch file itself is generating the error, not the operating system. " <-- So you think that error is written within the batch file, well.. that's a huge presumption you make without checking by asking. And Googling the error gives this link from MS support.microsoft.com/kb/2669244/en-gb
Nov
20
comment Excel- SUM formula not working on IF formula converted data
Try a simple case. Like J2:J3 not J2:J2013
Nov
20
comment How to match everything from after the last YAML delimiter onwards
Let us continue this discussion in chat.
Nov
20
comment How to match everything from after the last YAML delimiter onwards
@AndreaMoro That is what you intended your question to be but that's not what your question says. Your question says grep and your question says a specific delimiter/pattern being a problem, and your question says -A1(which would actually include the pattern), and your question says it's not working,and you can't escape the dash/hiphen.I suggest u post another question,this time without saying anything of grep and nothing about --- being a special problem.And ur question may be more about either a)matching text outside a pair of tags.or b)matching text after a second occurrence of a pattern.
Nov
19
comment How to match everything from after the last YAML delimiter onwards
@AndreaMoro I see in that last comment of yours, you got the right result though from grep's point of view. It outputs the match --- then the line after. For both occurrences of --- and after each one it puts a --. If you only want what is after the last --- then grep is the wrong tool unless perhaps you are willing to remove all new lines prior to running grep.
Nov
19
comment How to match everything from after the last YAML delimiter onwards
@AndreaMoro it's not so clear in comment as new lines aren't visible and one cannot really format much in a comment. Can you paste the examples (converted to bsd as you have) into your question, with the results.
Nov
19
comment How to match everything from after the last YAML delimiter onwards
@AndreaMoro can you paste the command and results you are getting? and try the alternative grep lines I suggeested eg cat t3.info | grep -P '(?=\x2d{3})...' -A1 or cat t3.info | grep -P '\x2d\x2d\x2d' -A1