> -----Original Message----- > From: David Buddrige [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 19, 2002 12:45 AM > To: [EMAIL PROTECTED] > Subject: Removing line-feed characters from a text file. > > ... How to determine the exact value of a non-printable character in a > text file.
I've found the unix 'od' utility to be helpful in cases like this. I set up a little test file with some form feeds in it. The output of cat -v looks like this: $ cat -v myfile test^Lform^Lfeeds The "^L" are the form feeds you see in your editor. Now with od: $ od -cb myfile 0000000 t e s t \f f o r m \f f e e d s \n 164 145 163 164 014 146 157 162 155 014 146 145 145 144 163 012 0000020 Now you can see that the form feed is 014 octal, which as John pointed out, you can use in your regex as \014. HTH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]