I have a file containing posts from usenet.
I have tried this to split the file into output files containing one post each.
-----------------------------------
#!/bin/bash
# $1= Inputfile
ARR=($(grep -n 'From ' $1 | cut -d':' -f1))
i=0
let j=i+1
cnt=${#ARR}
while [[ $i -lt $cnt ]]
do
sed...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.