I just had a look at my revelation file (and a new, empty rev file I
created) with od -a. It looks like revelation files have headers like
this:
$ od -a xx
0000000 r v l nul stx nul nul eot bel nul nul nul k V S N
$ od -a rev.rev
0000000 r v l nul stx nul nul eot bel nul nul nul @ dc1 - ]
so first 3 characters rvl followed by null stx nul nul eot bel nul nul
nul looks like what you're looking for. it's probably sufficient to
check that the first 3 characters are rvl.
something custom written in C would be good. but something like the
following will do the job, although more slowly, particularly since it
forks a two processes per file to be inspected.
copy the following into a file and then either chmod u+x that file or
just run it like this: sudo bash [filename]
#!/bin/bash
# this assumes the file is somewhere below where you
# are. you could run it from /, for example. or /home.
# if from / you probably want to run this as root, to
# avoid verbose errors with files you're not allowed to read
IFS=$'\n'
for fn in `find .`
do
if [ -f $fn ]
then
head -n 1 "$fn" | grep "^rvl" > /dev/null 2>&1
if [ $? == 0 ]
then
echo "$fn"
fi
fi
done
>
https://groups.google.com/d/msgid/revelation-password/560B0CD4.6000904%40fsck.co.uk.
--
Gerald Timothy Quimpo
bopolissimus_at_gmail.com
http://bopolissimus.*b*l*o*g*s*p*o*t*.com
"(Postgresql) Cursors are biased towards fast-start plans on
the theory that you may not be intending to fetch the whole
result. Queries with ORDER BY and/or LIMIT are
particularly likely to see plan changes as a consequence of
that."