MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Need help with GREP
PostPosted: April 22nd, 2013, 11:07 
Offline
User avatar

Joined: September 16th, 2006, 8:51
Posts: 141
Location: Vietnam
Hi,
I need code for make GREP to search .dat .mpg .mpeg
Thank you for your help

_________________
* Có ba thứ ngu dốt :

Không hiểu biết những gì mình đáng biết.
Hiểu biết không rành những gì mình biết.
Hiểu biết những gì mình không cần biết.


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 22nd, 2013, 12:21 
Offline

Joined: April 21st, 2013, 6:12
Posts: 17
Location: Italy
Excuse me hddlab, to search ".dat .mpg .mpeg" from where?

If you searching for the text line that ends with ".dat" or ".mpg" or ".mpeg" from a file list:
grep -E "\.dat$|\.mpg$|\.mpeg$"

please give more details
Best Regards
Paolo Ruggero


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 22nd, 2013, 16:31 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 16960
Location: Australia
Here is a windows tool that can search for hex strings in file headers, assuming that's what you really want.

Gsar for Windows:
http://gnuwin32.sourceforge.net/packages/gsar.htm

"gsar (General Search And Replace) is a utility for searching for and --- optionally --- replacing strings in both text and binary files. The search and replace strings can contain all kinds of characters (0--255), i.e. Ctrl characters and extended ASCII as well."

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 25th, 2013, 10:23 
Offline
User avatar

Joined: September 16th, 2006, 8:51
Posts: 141
Location: Vietnam
Thank you pruggero and fzabkar for your reply.
I want make GREP in my Data Extractor(Raw recovery) - PC3K

_________________
* Có ba thứ ngu dốt :

Không hiểu biết những gì mình đáng biết.
Hiểu biết không rành những gì mình biết.
Hiểu biết những gì mình không cần biết.


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 25th, 2013, 10:38 
Offline

Joined: August 18th, 2010, 17:35
Posts: 3669
Location: Massachusetts, USA
Already has built-in if I recall correctly.

_________________
Hard Disk Drive (HDD), Solid State Drive (SSD, SATA, NVMe, etc), USB Flash Drive and RAID Data Recovery Specialist in Massachusetts


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 25th, 2013, 10:49 
Offline
User avatar

Joined: May 13th, 2010, 11:17
Posts: 2821
Location: Kuwait
hddlab wrote:
Thank you pruggero and fzabkar for your reply.
I want make GREP in my Data Extractor(Raw recovery) - PC3K


IF:

1- the hdd is in good condition ---> no need to waste your Ferrari on such a task - use any App.
2- bad condition ---> clone it or dump the image and refer to option 1

good luck

_________________
Kuwait Data Recovery - UNIX GTC
The only reason for time is so that everything doesn't happen at once. By: Albert Einstein


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 25th, 2013, 13:48 
Offline
User avatar

Joined: August 13th, 2008, 13:10
Posts: 811
Location: World
I thnik the best is: clone, and them scan with data recovery soft


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 26th, 2013, 0:53 
Offline
User avatar

Joined: September 16th, 2006, 8:51
Posts: 141
Location: Vietnam
Thank you labtech, einstein9 and hhddrec for your reply.
einstein9: I like you said: the "Ferrari" :-)
To everyone: my HDD is good condition but it come from 8ch H.264 Standalone DVR System and the system use different method so when we plug the HDD in to a PC, all the data gone. PC3K have protected mode and I hope it don't do something stupid like Windows :-(

_________________
* Có ba thứ ngu dốt :

Không hiểu biết những gì mình đáng biết.
Hiểu biết không rành những gì mình biết.
Hiểu biết những gì mình không cần biết.


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 26th, 2013, 14:39 
Offline
User avatar

Joined: May 13th, 2010, 11:17
Posts: 2821
Location: Kuwait
hddlab wrote:
Thank you labtech, einstein9 and hhddrec for your reply.
einstein9: I like you said: the "Ferrari" :-)
To everyone: my HDD is good condition but it come from 8ch H.264 Standalone DVR System and the system use different method so when we plug the HDD in to a PC, all the data gone. PC3K have protected mode and I hope it don't do something stupid like Windows :-(


searching for Movies saved is a waste of TIME,

All DVR`s uses RAW Special Recording method, which is NONE STANDARD (in some cases)

i guess that BlackST has some idea`s here about DVR but thats not gonna be cheap (i think) and depends on DVR type

good luck

_________________
Kuwait Data Recovery - UNIX GTC
The only reason for time is so that everything doesn't happen at once. By: Albert Einstein


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 26th, 2013, 15:12 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 16960
Location: Australia
Show us the contents of sector 0. That may tell us if the data are encrypted.

BTW, AISI, if Windows doesn't understand LBA 0, then there would be no reason for it to touch that sector. I could be wrong, though.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: Need help with GREP
PostPosted: April 27th, 2013, 3:35 
Offline
User avatar

Joined: September 16th, 2006, 8:51
Posts: 141
Location: Vietnam
Thank you for your reply eintein9 and fzabkar
@fzabkar: so sorry, my client was plug this HDD to PC many time before it came to me (also run many app they found on web). I don't think it was remain origin data... :(

_________________
* Có ba thứ ngu dốt :

Không hiểu biết những gì mình đáng biết.
Hiểu biết không rành những gì mình biết.
Hiểu biết những gì mình không cần biết.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group