removing a space

Hi I want to remove a space for column 6. basically column 6 in my file looks like this:

tig 2
tig 9
tig 39
tig 300

I want the output to look like this:

tig2
tig9
tig39
tig300

How do I remove that space just for column 6.

thanks

Post a data sample and what you try until now using [code] tags and we will try to help you.

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

im sorry...

thanks

not sure what you're sorry about, but that's ok.........

kylle345 is probably sorry because of this

@phil_heath:

This is something a little sed script can do for you. It seems to me that the column you are trying to change is 5, not 6, but maybe i am missing a leading space. Anyways, you can modify the script yourself easily, the five full stops i put in represent 5 random characters followed by a space. If you have to change the column simply add/delete some of the full stops to adjust:

sed 's/^\(.....\) /\1/' /path/to/sourcefile > /path/to/resultfile

I hope this helps.

bakunin