Task: Extract Domain from URLs Using sed
Task: Extract Domain from URLs Using sed: a task in Terminal-Lego-15k (Harbor dataset). You need to write a shell command or script that extracts the domain (base URL) from a list of full URLs. The challenge is to use sed (or an alternative command-line tool if sed cannot accomplish this) to…
The task
You need to write a shell command or script that extracts the domain (base URL) from a list of full URLs. The challenge is to use `sed` (or an alternative command-line tool if sed cannot accomplish this) to extract just the protocol and domain portion from complete URLs.
Part of PrimeIntellect/Terminal-Lego-15k.