Txt file tab problem

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mayura
Participant
Posts: 40
Joined: Fri Aug 01, 2008 5:58 am
Location: Mumbai

Txt file tab problem

Post by mayura »

Unix file having spaces,blank lines and tabs
I am able to remove the spaces and blank lines but tabs are not removing from txt file.

Please help me out to remove the tabs coming in source file. :roll:
Mayura
vkhandel
Participant
Posts: 35
Joined: Wed Oct 04, 2006 12:12 am
Location: Pune

Re: Txt file tab problem

Post by vkhandel »

u can remove the tabs using "TR" command.

tr -d '\t' < {input file name} > {outut file name}
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Tabs can be found (and thus removed) by using CHAR(9).
-craig

"You can never have too many knives" -- Logan Nine Fingers
mayura
Participant
Posts: 40
Joined: Fri Aug 01, 2008 5:58 am
Location: Mumbai

Re: Txt file tab problem

Post by mayura »

vkhandel wrote:u can remove the tabs using "TR" command.

tr -d '\t' < {input file name} > {outut file name}
hey thx

i have removed the tab by using tr command and redirect it into one file and then i have removed the blank lines and spaces and redirect it into original file..
:wink:
Mayura
Post Reply