0

Could you please tell me what is expected result of command listed below?

/usr/bin/authselect current | /usr/bin/grep 'Profile[\s]*ID:'

As far as I can understand expected results are:

ProfilesID: sssd
Profile\ID: sssd

so Nessus is wrong :)

Barmar
  • 741,623
  • 53
  • 500
  • 612
chabo
  • 3
  • 1
  • `\s` is not a basic regular expression escape sequence. – Barmar Nov 01 '21 at 15:01
  • @chabo, see how Barmar's edits make this question way more approachable? Hopefully your next question, you can format it while you write it. If you're not going to talk about Nessus at all, it's not really relevant and you can just omit that detail – erik258 Nov 01 '21 at 15:03
  • In PCRE, you can put escape sequences inside `[]`. @DanielFarrell – Barmar Nov 01 '21 at 15:09
  • Ah, I see your point - it's not a regular expression escape sequence so it's "just" a standard character match. – erik258 Nov 01 '21 at 15:10

0 Answers0