$sudo grep -i -a -B100 -A100 'string' /dev/sda1 > file.txt
https://unix.stackexchange.com/questions/2677/recovering-accidentally-deleted-files/2680#2680

Good luck!

On 9 Jul 2020, at 05:53, BALL SUN <paulrbk@gmail.com> wrote:

Hi

I need an urgent help, I accidentally pipe the output to the kamailio
config, and now I lost the copy of my latest setting, is there a
chance that I can dump the running config back to file?

Thanks

PLEASE HELP

RBK

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users