Help on TR


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help on TR
# 1  
Old 09-27-2005
Help on TR

I want to do something like this:
Original file:
a car
the house
x tree

After running the TR command I want this:
a car
the house
tree

I've already tried almost all combinations of the TR command, begin of line, \ , etc etc and I can't do it.
Can anyone help? Or there is any other command that does the same?

Thanks in advance!
# 2  
Old 09-27-2005
Code:
sed 's/^x *//g' file

 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question