i want to split file by regular expression, i have file format as below
0|t| lorem ... some text 138|t| title some text
if i execute
egrep "[0-9]+\|t\|" file | wc -l it counts occurrence correctly but if i execute
csplit filename /[0-9]+\|t\|/ then it says no match found and does not split file.
seems some issue with pipe in pattern but not able to figure out solution.