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:


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: