2

I'm in a peculiar situation. While editing a Perl program I accidentally truncated the file to zero length using an Emacs lisp code I was developing. I need to recover that program... how do I do that?

I tried debugfs utility, but that was of no help because the program wasn't deleted, but rather truncated to zero length & then saved by the lisp code without a prompt.

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255

1 Answers1

3

Ok I did it myself.

$ strings /dev/sda6 | grep -C 329 "print PICOTABLE" > strings.out
slm
  • 369,824