Chandrasekaran Mythili wrote:
> 
> HI,

Hello,

> I am new to Perl and I need some help regarding tranfering the contents of
> one file to other file in specified format using perl.
> 
> the problem is i have one file with data(data is in hex) as follows:
> 48
> 30
> 20
> 2E
> 2E
> 2E
> 0
> 0
> 0
> 
> i want to copy the contents of this file to another file till 0 is
> encountered.that is i want the resultant file to have
> 
> 4830202E2E2E
> 
> what command should i use get all the data in the same line?

perl -ne'0+$_&&print/./g' file1 > file2


:-)

John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to