Shell Script to extract text from File

完了済み 投稿 6年前 着払い
完了済み

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.

Linux PHP Python シェルスクリプト ソフトウェアアーキテクチャ

プロジェクトID: #16022453

プロジェクトについて

10個の提案 リモートプロジェクト アクティブ 6年前

アワード:

Bhawandtu

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 / 時間
(53レビュー)
4.8

10 人のフリーランサーが、平均₹229/時間で、この仕事に入札しています。

ChanakyaNaag

Hey there! I have read your requirement and would like to work on this project. I have already worked on similar projects

₹200 INR / 時間
(42件のレビュー)
5.1
shantanupython

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 heade もっと

₹277 INR / 時間
(54件のレビュー)
5.2
webzonenetwork80

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 もっと

₹111 INR / 時間
(30件のレビュー)
4.8
rakeshknehra

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: [login to view URL] もっと

₹200 INR / 時間
(24件のレビュー)
3.9
Isfaaq

A proposal has not yet been provided

₹277 INR / 時間
(0件のレビュー)
0.0
Biriaymane

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 もっと

₹333 INR / 時間
(0件のレビュー)
0.0
soudips

A proposal has not yet been provided

₹111 INR / 時間
(0件のレビュー)
0.0