in reply to Replace comma with tab

It works for me (with or without the "g", which replaces "globally")
>echo this, that, and the other | perl -pe 's/,/\t/g' this that and the other
"does not work" is not a specific enough description.

It would help if you showed what you expect it to do, and what it actually produces for you, as well as a sample of the input data.

        "You're only given one little spark of madness. You mustn't lose it."         - Robin Williams

Replies are listed 'Best First'.
Re^2: Replace comma with tab
by zaqwsxcde (Initiate) on Apr 05, 2015 at 15:15 UTC
    it worked finally. After adding the "g" at the end of the command, it worked properly. I am still curious, why did it work fine without "g" for the previous task (converting ".." to ","), and did not work for converting "," to tab?
      We could probably explain if you showed us your data.

      Perhaps you had only one occurrence of double dots per line of input. Maybe something else, I can't say for sure, we need to see the data.

      Je suis Charlie.