• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

change text

I have a text file with lots of space or tabs in. Is there an easy way to remove the spaces or tabs within unix?

A.
0
aiacb
Asked:
aiacb
1 Solution
 
mrn060900Commented:
yes use sed

create a script using vi and enter the following

#!/usr/bin/sed
s/[  ][  ]/ /g

inbetween the [ ] put a space and a tab

save it as change
chmod 700 change

then change < oldfile > newfile

Regards Mike
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now