Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have the following data in a file in L inux . I need to cut everything and onl

ID: 3748092 • Letter: I

Question

I have the following data in a file in Linux. I need to cut everything and only have the websites in the list.

What cut commands do I use to achieve that? Thank you.  

My Cisco Helpc/a> index.html:11>About Cisco Social responsibility Environmental sustainability The Trust Center Contact Cisco ca hrer="/c/en/us/solutions/partner-ecosystem . html">Meet our partners Careers We Are Cisco Our People Deal Partner with Cisco Merak webex Webex leana Contacts Feedback Help Site Map lerms & Conditions Trademarks My Cisco li>Helpc/a> Index1.html:41>About Cisco 11>Social responsibility li>Environmental sustainability 11>The Trust Center Contact Cisco ca hret="/c/en/us/solutions/partner-ecosystem . html">Meet our partners li>Find a Careers 11>Me Aze Cisco Our People Deal ca hret="/c/en/us/partners/partner-with-cisco.html">Partner with Cisco reseller li>Merak Mebex 11>Webex Teams 1. giF

Explanation / Answer

I am assuming here, you have all the information displaying on the screen in some file named say filename.txt

step 1: grep -o '".*"' filename.txt > temp.txt

Explanation: It trims out all the web addresses and writes them into a temporary file temp.txt

step 2:

sed 's/"//g' temp.txt > newfile.txt

Explanation: It removes all the double quotes from the data written in the temp.txt and extracts only the links and write them into newfile.txt file

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote