I have one big problem. I had two files - main.c and logic.c. I have used sed for some modification in logic.c and then i saved it to main_updated.c and then run
mv main_updated.c main.c
BUT it had to be logic_updated.c and logic.c. PLS can anyone hlp me, how restore main.c file or i am dead.