Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #14548

Re: scanning HD data

From "Bill Cunningham" <nospam@nspam.invalid>
Newsgroups comp.os.linux.misc
Subject Re: scanning HD data
Date 2015-04-14 16:23 -0400
Organization A noiseless patient Spider
Message-ID <mgjstn$d79$1@dont-email.me> (permalink)
References <mgjrim$7n8$1@dont-email.me> <eli$1504141617@qz.little-neck.ny.us>

Show all headers | View raw


"Eli the Bearded" <*@eli.users.panix.com> wrote in message 
news:eli$1504141617@qz.little-neck.ny.us...
> In comp.os.linux.misc, Bill Cunningham <nospam@nspam.invalid> wrote:
>>     If I had a dump of a file. And then wanted to find it on the 
>> filesystem,
>> could I use sed? I've never used this command and I am not familiar with 
>> it.
>> Other than I know it exists. It is a "stream editor" whatever that is. If 
>> I
>> had a dump of XX1. It's 500 MB long. Can I use sed and pipe to find it on
>> the filesystem? I am running ext3 right now.
>
> In the beginging there was 'ed'. It is an editor and can do all things
> an editor needs to do. It doesn't do anything that you might like an
> editor to also do. 'ed' can modify your file with a reg-exp search and
> replace. But if you have any errors in that command, you get the
> universal error message of 'ed': "?". 'ed' can copy or move lines around
> in your file. But if you have any errors in those commands, you get the
> universal error message of 'ed': "?". 'ed' can save files and open files.
> But if you have any errors in those commands, you get the universal
> error message of 'ed': "?".
>
> 'sed' offers many of the features of 'ed', but dispenses with that whole
> inter-active editing thing, and dispenses with that whole operate on
> files on disk thing. 'sed' takes a set of editing commands and applies
> them to STDIN and sends the output to STDOUT. You can get 'sed' to use a
> list of files instead of STDIN, but the output is still STDOUT, not
> changing those files named.
>
> 'ex' offers many of the features of 'ed', but with some more and with
> actual error messages. 'ex' also has this novel concept of using the
> whole screen in a mode called 'visual', usually just invoked with the
> abbreviation 'vi'. It's all the power of 'ed', but with a friendlier
> face and some new exciting features like named cut buffers and undo.
>
> So anyway, no. You don't want 'sed' for your problem.
>
> Elijah
> ------
> have you considered 'find' and 'grep'?

    Can you use find and grep to scan /dev/sda1 or so and match what comes 
through there to a hexdump of XX1 ? And get the address of the sector where 
that file has its' beginning and end?

HTH
Bill

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

scanning HD data "Bill Cunningham" <nospam@nspam.invalid> - 2015-04-14 16:00 -0400
  Re: scanning HD data Vilmos Soti <vilmos@soti.ca> - 2015-04-14 13:14 -0700
    Re: scanning HD data "Bill Cunningham" <nospam@nspam.invalid> - 2015-04-14 16:18 -0400
  Re: scanning HD data Andreas Kohlbach <apr15.7.ankman@spamgourmet.net> - 2015-04-14 16:15 -0400
  Re: scanning HD data Eli the Bearded <*@eli.users.panix.com> - 2015-04-14 20:17 +0000
    Re: scanning HD data "Bill Cunningham" <nospam@nspam.invalid> - 2015-04-14 16:23 -0400
      Re: scanning HD data root <NoEMail@home.org> - 2015-04-14 22:00 +0000
      Re: scanning HD data Eli the Bearded <*@eli.users.panix.com> - 2015-04-14 23:20 +0000
        Re: scanning HD data "Bill Cunningham" <nospam@nspam.invalid> - 2015-04-14 19:59 -0400
          Re: scanning HD data Eli the Bearded <*@eli.users.panix.com> - 2015-04-15 00:43 +0000
            Re: scanning HD data "Bill Cunningham" <nospam@nspam.invalid> - 2015-04-14 21:09 -0400
            Re: scanning HD data "Bill Cunningham" <nospam@nspam.invalid> - 2015-04-15 14:35 -0400
      Re: scanning HD data Chick Tower <c.tower@deadspam.com> - 2015-04-15 17:09 +0000
        Re: scanning HD data The Natural Philosopher <tnp@invalid.invalid> - 2015-04-15 18:26 +0100
        Re: scanning HD data "Bill Cunningham" <nospam@nspam.invalid> - 2015-04-15 14:27 -0400
  Re: scanning HD data Baho Utot <baho-utot@columbus.rr.com> - 2015-04-14 18:42 -0400
    Re: scanning HD data "Bill Cunningham" <nospam@nspam.invalid> - 2015-04-14 19:28 -0400
  Re: scanning HD data James Moe <jimoeDESPAM@sohnen-moe.com> - 2015-04-15 11:24 -0700

csiph-web