1

Delete until Nth occurence (sed, awk)

view story
linux-howto

http://www.unix.com – Hello people, Once more I need your help with SED/AWK I need to delete up to the Nth occurence of a char (from the beggining) and until the Mth occurence of a char (from the end) Example: Input: Code: a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z Output: Code: i,j Must delete up to the 8th comma from the beggining and upo to the 16th comma from the end. For each line Thank you in advance for your help. (HowTos)