04-12-2011
how to recover the truncate file in unix
how to recover the file in unix.
Thanks in advance.
![Question Smilie](https://www.unix.com/images/icons/icon51.png)
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
reglookup-recover
reglookup(1) reglookup(1)
NAME
reglookup-recover - Windows NT+ registry deleted data recovery tool
SYNOPSIS
reglookup-recover [options] registry-file
DESCRIPTION
reglookup-recover attempts to scour a Windows registry hive for deleted data structures and outputs those found in a CSV-like format.
OPTIONS
reglookup-recover accepts the following parameters:
-v Verbose output.
-h Enables the printing of a column header row. (default)
-H Disables the printing of a column header row.
-l Display cells which could not be interpreted as valid registry structures at the end of the output.
-L Do not display cells which could not be interpreted as valid registry structures. This is the default behavior.
-r Display raw cell contents for cells which were interpreted as intact data structures. This additional output will appear on the same
line as the interpreted data.
-R Do not display raw cell contents for cells which were interpreted as intact data structures. This is the default behavior.
registry-file
Required argument. Specifies the location of the registry file to read. The system registry files should be found under: %System-
Root%/system32/config.
OUTPUT
reglookup-recover generates a comma-separated values (CSV) like output and writes it to stdout. For more information on the syntax of the
general format, see reglookup(1).
This tool is new and the output format, particularly the included columns, may change in future revisions. When this format stablizes,
additional documentation will be included here.
EXAMPLES
To dump the recoverable contents of a system registry hive:
reglookup-recover /mnt/win/c/WINDOWS/system32/config/system
Extract all available unallocated data, including unparsable unallocated space and the raw data associated with parsed cells in a user-spe-
cific registry:
reglookup-recover -r -l '/mnt/win/c/Documents and Settings/user/NTUSER.DAT'
BUGS
This program has been smoke-tested against most current Windows target platforms, but a comprehensive test suite has not yet been devel-
oped. (Please report results to the development mailing list if you encounter any bugs. Sample registry files and/or patches are greatly
appreciated.)
This program is new as of RegLookup release 0.9.0 and should be considered unstable.
For more information on registry format details and the recovery algorithm, see: http://sentinelchicken.com/research/registry_format/
http://sentinelchicken.com/research/registry_recovery/
CREDITS
This program was written by Timothy D. Morgan.
LICENSE
Please see the file "LICENSE" included with this software distribution.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more details.
SEE ALSO
reglookup-timeline(1) reglookup-recover(1)
File Conversion Utilities 8 March 2010 reglookup(1)