Answered step by step
Verified Expert Solution
Question
1 Approved Answer
**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 emailStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started