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
  • 66,199
  • 35
  • 114
  • 250
Punit Arya
  • 300
  • 1
  • 8

1 Answers1

3

Ok I did it myself.

$ strings /dev/sda6 | grep -C 329 "print PICOTABLE" > strings.out
slm
  • 363,520
  • 117
  • 767
  • 871
Punit Arya
  • 300
  • 1
  • 8