Create simple processing bash script
$15-55 USD
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
Project ID: #9689427
About the project
Awarded to:
Hello dear sir, script is ready please contact me if you interested in .Thank you. With best wishes, Boris Barabanov
4 freelancers are bidding on average $28 for this job
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.
Got your req Can complete this in 30 mins or an hour in worst case with a sh script. What do you think? thnx