1837981 Members
1960 Online
110124 Solutions
New Discussion

RE Regular expression

 
CLUTIER
Advisor

RE Regular expression

I really want to use regular expression
like [^.*][Aa][T-U]*.DON in a frecover command
I just give an example in my previous message
I have a lot of file with very long name to restore ex : sgbd.1789.fzh.12.Z.DON
I must use regular expression if I can ????
3 REPLIES 3
Steve Steel
Honored Contributor

Re: RE Regular expression

Hi

As put in your previous question. Forget it.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xdc224b3ef09fd611abdb0090277a778c,00.html

Make a graph file by reding the index and frecovcr with that.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ralph Grothe
Honored Contributor

Re: RE Regular expression

Sorry for interfering despite lacking knowledge of frecover.
I'm not sure about the regex capabilities of the frecover program.
There is really a mess as far as it comes to regex, because every program that pretends to understand them treats them differently and has its own kind of syntax (that's why I stick to Perl, whenever I want to make extended use of regex).
I fear that you may have to resort to the shell's (i.e. derived from csh) globbing mechanism.
There you have to use the '!' to inverse a character set (another of those idiosyncrasies).
Madness, thy name is system administration
Thierry Poels_1
Honored Contributor

Re: RE Regular expression

Hi,

as stated before frecover does not support wildcards...
BUT there's always a workaround, not?

frecover -f /dev/rmt/0m -I /tmp/indexfile
-- this creates an index of all files on the backup

grep [whatever] /tmp/indexfile > /tmp/graph
-- select the required files

frecover -your_options -i /tmp/graph


good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.