in reply to Perl variant of linux tool strings

$ perl -n -e '@strings =~ /([\w\n\r\s]+)/g; print "@strings\n"' file1 file2 file3

from the commandline ... or am I missing something?

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^2: Perl variant of linux tool strings
by jeanluca (Deacon) on Mar 23, 2005 at 20:48 UTC
    Thanks for the answers. What I want with this is the 'words' inside, for example a pdf file.
      What's your real question? Do you want to parse a PDF file or do you want to extract the ASCII sequences from within a non-ASCII file?

      Being right, does not endow the right to be rude; politeness costs nothing.
      Being unknowing, is not the same as being stupid.
      Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
      Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.