Search Results

Search: Posts Made By: Franklin52
1,800
Posted By Franklin52
Sure. awk...
Sure.
awk '/Sis/{close(f);f=sprintf("Sis%02d",++c)}{print > f}' file

Explanation:

/Sis/ | search for the pattern and if it matches:

{close(f) | close the opened file (if there was one...
1,800
Posted By Franklin52
awk...
awk '/Sis/{close(f);f=sprintf("Sis%02d",++c)}{print > f}' file
Showing results 1 to 2 of 2

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