PATCH//NOTES Open it in the app
← All hands-on practice
Linux · 6 min

Just the addresses

Each line of hosts.txt is an address, then a name. Print only the addresses.

Start it: free, in your browser, no account

What you will do

  1. Print only the addresses from hosts.txt.

cut -d ' ' -f 1 keeps field 1, splitting on a space. It does not understand quoted fields.