in reply to Re: Why does my Perl regex substitution for linebreak fail?
in thread Why does my Perl regex substitution for linebreak fail?

Thanks, igelkott, for adressing the console-part of my post. Can you please explain to me in more basic terms what your suggestion is? I am fairly new to Linux and hence don't quite understand what the issue is you are pointing at. The file I intend to operate on, however, has been generated with the 'cat' command in the shell concatenating other files generated under Linux. Not sure, therefore, if the inter-operating-system issue applies here. Thanks again - Pat
  • Comment on Re^2: Why does my Perl regex substitution for linebreak fail?

Replies are listed 'Best First'.
Re^3: Why does my Perl regex substitution for linebreak fail?
by igelkott (Priest) on Mar 06, 2008 at 18:10 UTC
    "tail -3 foo | od -bc" means to take the last three lines from "foo" and feed it to the "od" command with "b" and "c" options.

    I'll presume that the first part is either clear or is reasonably easy to look up; "od" is the weird part. This is named for "octal dump" (option b) but I'm using it here to also get the character names (option c). In particular, to reveal the non-printing characters.

      Got it, igelkott.

      Thanks for the Perl and Bash wisdow!