Question: **Language: Basic Linux plzzz** (1) Given a text file that contains a list of URLs, write a grep command that can extract only valid URLs
**Language: Basic Linux plzzz**
(1) Given a text file that contains a list of URLs, write a grep command that can extract only valid URLs from the file. A valid URL should start with http:// or https://, followed by one or more word characters (letters and numbers), and end with a .com, .org, .net, or .edu extension.. Question: what command you should use (2) Given a text file that contains a list of email addresses, write a grep command that can extract only valid email addresses from the file. A valid email address should contain a word character, followed by an @ symbol, then another word character, followed by a ., and ending with a two to six letter word character. Question: what command you should use Hint: you can use "grep -E "Your regex" text_file.txt" You can create a file with the following content to test your command: "http://google.com https://yahoo.org https://abc.com abc@gmail.com abc.def@hotmail.com invalid email
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
