I have a file with multiple IP addresses for different websites, however I only want to print out the websites associated with a specific IP and display the website. For example,
128.125.21.1,/www.extra.com/home.html,2323,oiehfoioi,wopwpwp
124.15.21.1,/www.yahoo.com/9998,wjeoiwjo,bbdjksbk
All I need is the websites associated with 128.125.21.1 and I've gotten results using awk to print the entire web address and the IP but I would like to remove the IP How can I combine awk and sed to accomplish this?
/
? Also clarify if what you want is to print the second comma-separated field on lines whose first comma-separated field is a specific IP. Finally, it would help if you show us what you've tried.