Create simple processing bash script

Completed Posted Feb 17, 2016 Paid on delivery
Completed Paid on delivery

I have a command which runs on linux and returns multiple lines as it goes

Each line is a pipe seporated csv (see attached in project for partial output)

I need someone to write me a bash script to check if the 6th entry in the pipe seporated line is IPv6 prefix or IPv4 address.

If its an IPv4 address it needs to append write the full line to [url removed, login to view]

If its an IPv6 address it needs to append write the full line to [url removed, login to view]

The end goal is to be left with 2 files. "[url removed, login to view]" and "[url removed, login to view]" each has their own relative multiple lines.

THIS MUST BE DONE IN BASH. <---- Important

I expect the freelancer to pipe the data line by like do a check and output to the correct file.

Please make sure you look at the [url removed, login to view] I have attached in project so you can see what data I am dealing with.

what I expect is something like:

mycommand | if [$line eq ipv4] then: echo $line >> [url removed, login to view]; else: echo >> $line [url removed, login to view]; done

Obviously the above example is terrible and non functional but I need you to make it like this.

I would need to freelancer to start this once awarded. I would assume this should not take longer than 1 hour to do

Linux System Admin UNIX

Project ID: #9689427

About the project

4 proposals Remote project Active Feb 18, 2016

Awarded to:

ast3r1sk

Hello dear sir, script is ready please contact me if you interested in .Thank you. With best wishes, Boris Barabanov

$35 USD in 1 day
(6 Reviews)
3.1

4 freelancers are bidding on average $28 for this job

sholm

I have previous experience as a Linux system administrator so I'm very familiar with shell scripting and can get this done quickly with no hassle using regex.

$20 USD in 1 day
(0 Reviews)
0.0
selimdemir99

Got your req Can complete this in 30 mins or an hour in worst case with a sh script. What do you think? thnx

$35 USD in 1 day
(0 Reviews)
0.0
amalzackaria

A proposal has not yet been provided

$25 USD in 1 day
(0 Reviews)
0.0