Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

separate a file by pattern

cat input.txt | awk -v RS="pattern_to_split" '{ print $0 > "out_name" NR }' 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #separate #file #pattern
ADD COMMENT
Topic
Name
9+9 =