Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed**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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Support For Data Mining Applications Discovering Knowledge With Inductive Queries Lnai 2682

Authors: Rosa Meo ,Pier L. Lanzi ,Mika Klemettinen

2004th Edition

3540224793, 978-3540224792

More Books

Students also viewed these Databases questions

Question

What went well in the mediation process?

Answered: 1 week ago