Peakon and solitonic solutions for KdV-like equations