Operating System - Tru64 Unix
1751940 Members
4906 Online
108783 Solutions
New Discussion юеВ

Re: Txt file operations

 
Sameer_16
Occasional Contributor

Txt file operations

Hi,
Please help me to solve this problem.
I copied excel sheet data to txt file in windows environment.

I copied the same txt file in Unix Server(Digital Tru64) and tried to format it.

When I copied Excel sheet data to txt file, the default delimiter was "TAB" now I want to change it to the "|".

Please tell me the esiest way to do it.

Regards,
Sameer
2 REPLIES 2
Johan Brusche
Honored Contributor

Re: Txt file operations



sed "s/ /|/g" test.txt > new.txt

NOTE: the character between first 2 / is a

__ Johan.

_JB_
Sameer_16
Occasional Contributor

Re: Txt file operations

Thanks Johan,

Let me try the same. I will get back to you soon.


Thanks and Regards,

Sameer