if I have a file test.txt:
example 1 content 2013-3-8: hello java example 2 content 2013-4-9: hello c how can I use awk or sed to seperate the test.txt to two file
test1
hello java test2
hello c I use the command below:
awk '/example/{i++}{print > "test"i}' test.txt but it will remain the first line(example xxx), can I add some fragment to the print in awk to delete the first line?