04-12-2011
how to recover the truncate file in unix
how to recover the file in unix.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have one file which first line is blank and second line has some data.
$cat filename
output:
30-MAY-07
I want to store 30-MAY-07 value in one variable.
for that I wrote
var="`head -2 filename`"
It will give that result but I want to truncate the first line which is blank.
plz help. (2 Replies)
Discussion started by: rinku
2 Replies
2. UNIX for Dummies Questions & Answers
I am trying to concatenate 2 files, but before concatenation, I would like to strip off the final character from the first file.
The final character is a form feed (ascii 012 / hex 0C) and there will be an unknown number of these characters in the file. It is only the very last one which I want... (1 Reply)
Discussion started by: Gwailo88
1 Replies
3. UNIX for Dummies Questions & Answers
hi
after using rm command how to recover the deleted file (7 Replies)
Discussion started by: arulkumar
7 Replies
4. UNIX for Dummies Questions & Answers
Hi Experts,
by mistake i deleted some files that are very important to the project.
is there any way that i can recover those files,there is no backup for that but the details of the file we know.
This will be a great help.
Thanks (5 Replies)
Discussion started by: namishtiwari
5 Replies
5. UNIX for Dummies Questions & Answers
Hi Guys
I accidently deleted a directory( and the files in it) in unix using 'rm -rf' :)
Is there any procedure/script/command to recover the same?
Your help is highly apperciated
-thanks
Subramanya (1 Reply)
Discussion started by: sgbhat
1 Replies
6. Shell Programming and Scripting
Hi All,
I have a long log file (abc.log) which contains large volume of data that need to be inserted into the database as clob.
I am having problem in inserting the long log file into the clob field if the cahracters in the file exceeds. So iwould like to truncate the file upto 32767... (3 Replies)
Discussion started by: rajeshorpu
3 Replies
7. Shell Programming and Scripting
Hello all.
I would like to make a script (or two shell scripts) that will do the following.
I need the maximum file name and directory name to be 38 characters long.
As well, if shortening the file name ends up making all of the files in that directory have the same name, then I would like... (9 Replies)
Discussion started by: marcozd
9 Replies
8. UNIX for Dummies Questions & Answers
hi All,
how to recover the truncate file in unix.
Thanks!:wall: (2 Replies)
Discussion started by: krbala1985
2 Replies
9. UNIX for Dummies Questions & Answers
Hello everyone,
I am trying to reproduce the following SQL statement in UNIX. Can anyone help me out with this one..
SELECT trunc(add_months(SYSDATE, -1), 'mm') FROM DUAL;
date +"%Y%m%d" -d last-month
This gives me last month date but I need to truncate that to 1st of that month.
Any... (2 Replies)
Discussion started by: ronitreddy
2 Replies
10. Solaris
I've a tape contains a corrupt tar file. I'm using Unix SunOS 5.5.1. So when I run this command : dd if=/dev/rmt/0 of=/tmp/outputfile.tar
I get this error message :
warning /pci@1f, 0/pci@1/pci@1/sunw, isptwo@4/st@4,0 (sty): Error for command : read Error Level: Fatal Requested... (2 Replies)
Discussion started by: akaderb
2 Replies
LEARN ABOUT DEBIAN
arbtt-recover
ARBTT-RECOVER(1) Program references ARBTT-RECOVER(1)
NAME
arbtt-recover - tries to recover a broken arbtt data log
SYNOPSIS
arbtt-recover [OPTION...]
DESCRIPTION
arbtt-recover tries to readsthe data samples recorded by arbtt-capture(1), skipping over possible broken entries. A fixed log file is
written to <file>~/.arbtt/capture.log.recovered</file>. If the recovery was successful, you should stop arbtt-capture and move the file to
<file>~/.arbtt/capture.log</file>.
As a sid effect, arbtt-recover applies the log compression method implemented in version 0.4.5 to the samples created by an earlier
version. If you have a large logfile written by older versions, running arbtt-recover is recommended.
OPTIONS
-h, -?, --help
shows a short summary of the available options, and exists.
-V, --version
shows the version number, and exists.
-i, --infile
logfile to use instead of ~/.arbtt/capture.log
-o, --outfile
where to save the recovered file, instead of ~/.arbtt/capture.log
FILES
~/.arbtt/capture.log
binary file, storing the arbtt data samples
~/.arbtt/capture.log.recovered
binary file, storing the fixed arbtt data samples
SEE ALSO
See the arbtt manual for more information and the arbtt hackage page[1] for newer versions of arbtt.
AUTHORS
Joachim Breitner <mail@joachim-breitner.de>
Main author of arbtt
Sergey Astanin <s.astanin@gmail.com>
Contributor
Martin Kiefel <mk@nopw.de>
Contributor
Muharem Hrnjadovic <muharem@linux.com>
Contributor
NOTES
1. arbtt hackage page
http://www.hackage.org/package/arbtt
arbtt manual 04/07/2012 ARBTT-RECOVER(1)