Article 4Z2AS Bash question... is there a way to detect a possible presence of one character

Bash question... is there a way to detect a possible presence of one character

by
Basher52
from LinuxQuestions.org on (#4Z2AS)
I have a line like this:
Code:sed -n /[hH][tT][tT][pP]:[/][/]and it work perfect but I also want to be able to grab this:
Code:sed -n /[hH][tT][tT][pP][sS]:[/][/]I can do both lines but I guess there's a better way, it's Linux for cryin' out loud :p
I'm just a person with illegally little knowledge of bash :redface::banghead:latest?d=yIl2AUoC8zA latest?i=GgVbWcmIhMs:x2oiDajJl-M:F7zBnMy latest?i=GgVbWcmIhMs:x2oiDajJl-M:V_sGLiP latest?d=qj6IDK7rITs latest?i=GgVbWcmIhMs:x2oiDajJl-M:gIN9vFwGgVbWcmIhMs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments