Search Results

Search: Posts Made By: saisanthi
2,177
Posted By saisanthi
Hi Ahamed, I have modifed the command as...
Hi Ahamed,

I have modifed the command as shown below:
awk 'BEGIN {blocks=b=5;i=1} /Master/{p=1;p++} p{ print > i".log" } /third/{--p;if(!--b){++i;b=blocks}} ' infile

but this command is...
2,177
Posted By saisanthi
Problem with splitting large file based on pattern
Hi Experts,

I have to split huge file based on the pattern to create smaller files. The pattern which is expected in the file is:
Master.....
First...
second....
second...
third..
third......
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy