# Small Help with gsub command to replace a special character with space

**URL:** <https://discuss.elastic.co/t/small-help-with-gsub-command-to-replace-a-special-character-with-space/86447>\
**Category:** Logstash\
**Created:** [May 19, 2017, 2:47pm UTC](https://discuss.elastic.co/t/small-help-with-gsub-command-to-replace-a-special-character-with-space/86447 "2017-05-19T14:47:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fathi\_rida](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fathi_rida/32/48233_2.png) [@fathi\_rida](https://discuss.elastic.co/u/fathi_rida)\
**Post date:** [May 19, 2017, 2:47pm UTC](https://discuss.elastic.co/t/small-help-with-gsub-command-to-replace-a-special-character-with-space/86447/1 "2017-05-19T14:47:02Z")

</div>

Hello,  
I have data as below, I like to replace "-" with space using gsub but I could not get correct output.

data : 1111-4-1-12-00-11

i want new data Like So: data : 1111-4-1 12-00-11

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 16, 2017, 2:47pm UTC](https://discuss.elastic.co/t/small-help-with-gsub-command-to-replace-a-special-character-with-space/86447/2 "2017-06-16T14:47:22Z")

</div>

Closed on June 16, 2017, 2:47pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
