grep from a hanging line

Trying to grep from a file like this and get the IP address


"creation": "2020-04-09 15:06:41",

"distro": "mydistro",

"hostname": "myhost",

"id": "126123",

"ipaddress": [

[login to view URL]


"last connect": "2020-04-09 15:06:41"


trying grep with this and expecting to get hostname and ip right below it.

grep [login to view URL] -A6 hostname

Really need a bit of help if you can help me get the ip address from this file.

Please note if you help me get it going I will leave 5 stars and pay prompt with very nice comments (something I enjoy doing very much)

Навыки: Bash Scripting, Shell Script, Установка скриптов, Scripting

О клиенте:
( 242 отзыв(-а, -ов) ) Lyndhurst, United States

ID проекта: #24906097



Hello, I'll be glad to help you with grep, I have at least 2 working methods with native bash and with nice 3rdparty software. Is it json? Let's talk in chat. Kind regards, Vladimir

$10 USD за 1 день
(11 отзывов(-а))

3 фрилансеров(-а) готовы выполнить эту работу в среднем за $13


Hi There!! I have been working as Linux Administrator for 6+ years and have written many shell scripts and Ansible Playbook for automating projects. I have been working in vRealize Automation tool which has various Blu Больше

$20 USD за 1 день
(13 отзывов(-а))

Hi, I can write the line for you pretty fast.. well actually, you needn't to pay for me, or pay for as wish so.. see if you want to contact me thanks in advance !

$10 USD за 1 день
(0 отзывов(-а))