[Shell] Remove tabulation

Solved
wafa_o Posted messages 112 Status Member -  
dubcek Posted messages 18627 Registration date   Status Contributor Last intervention   -
Hello,

I want to remove the tabs from my file. I'm using the command:

sed 's/^[ \t]*//;s/[ \t]*$//' <file>

This way, I'm removing all tabs at the beginning and end of the lines of my file.
However, I notice that there is still a tab in the middle of the line. Can you help me?
Thank you in advance.

Here's an excerpt from the file:

''
''
''
''
]
''[ ''
''
''
''
''

2 answers

  1. vignemail1 Posted messages 1262 Status Contributor 259
     
    ```html sed -r "s/\t//ig"
    --

    Contributor member
    Specialized in networks, web mastering, programming ```
    5
    1. wafa_o Posted messages 112 Status Member 2
       
      Super, thanks vignemail1
      0
  2. dubcek Posted messages 18627 Registration date   Status Contributor Last intervention   5 660
     
    bonjour
    tr -d "\t"
    3