Horje
separate a file using a tag Code Example
separate a file using a tag
 cat file.txt | awk -v RS="your_tag" '{ print $0 > "structure" NR }'
 
 this tend to create empty files / useless files after the final tag, so remove them as below 
 $5==0 $5 is file size column, 0 is to empty sometime it may be 2,3 kb, add file size accrodingly 
 
 ls -ltr structure* | awk '{if($5==0) system("rm "$9)}' 




Shell

Related
dpkg: error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 134 Code Example dpkg: error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 134 Code Example
cron every 5 minutes offset Code Example cron every 5 minutes offset Code Example
alternative echo linux Code Example alternative echo linux Code Example
ssh upload file to server Code Example ssh upload file to server Code Example
ModuleNotFoundError: No module named 'weasyprint' Code Example ModuleNotFoundError: No module named 'weasyprint' Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12