Find Jobs
Hire Freelancers

Shell Script to extract text from File

₹100-400 INR / hour

Completed
Posted over 6 years ago

₹100-400 INR / hour

HI - I am looking for a Shell Script which can extract Text from the file. I have a logfile with name Server.log. It contains logs of a process. On any incident occurrence one KeyLine is being printed in log file as "Process Ends With ID# <16Digit Process ID>" I want to find all the such occurrence in the file and extract 2000 lines before this KeyLine and 1000 Lines after this KeyLine and Save in log with with name <16Digit Process ID>.log. The script should not be giving error for cases like if number of lines below KeyLine is less than 1000 then it should print all the lines below that <16Digit Process ID>rather giving exception of not having 1000 lines.
Project ID: 16022453

About the project

10 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I have 2+ years of working experience in shell scripting. I have done a lot of projects. Looking forward for a positive response from you.
₹166 INR in 20 days
5.0 (53 reviews)
4.8
4.8
10 freelancers are bidding on average ₹229 INR/hour for this job
User Avatar
Hey there! I have read your requirement and would like to work on this project. I have already worked on similar projects
₹200 INR in 40 days
5.0 (42 reviews)
5.1
5.1
User Avatar
As shell scripts are not flexible enough, i would suggest to use a python script for this, which i will make for you, you will notice no difference as it will run like a normal script(just replace the shebang header), python had many complex tools and better regex support to do this
₹277 INR in 4 days
5.0 (54 reviews)
5.2
5.2
User Avatar
Hi Im a SOFTWARE ENGINEER and have a expert team of dev im also a dev i can provide u quality of work , we had DONE many task in those language which u required , i saw ur description we can do this job waiting for ur response Thanku
₹111 INR in 40 days
5.0 (30 reviews)
4.8
4.8
User Avatar
Hi there, I am an experienced system administrator and script writer. I can complete your project. I have already completed a number of projects related to shell scripting. You can check one here: https://www.freelancer.com/projects/php/write-simple-bash-script/ Please contact for further discussion. Thanks and regards!!!
₹200 INR in 40 days
4.9 (24 reviews)
3.9
3.9
User Avatar
A proposal has not yet been provided
₹277 INR in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi , I can get this job done in less than 5 hours in python, i think my work will meet your expectations and thank you for choosing me. Relevant Skills and Experience I have experience with python , i use linux as my main OS and with creativity, everything's possible.
₹333 INR in 4 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
₹111 INR in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
Bangalore, India
4.9
89
Payment method verified
Member since Sep 5, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.