Find and Replace: how to replace tabs chars...

Asked by Ramakrishnan

i need to replace the tab characters by 8 spaces. i Cannot Find Tab Spaces through FIND and REPLACE option.
Help me.pls

Question information

English Edit question
Ubuntu gedit Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mesut Can GÜRLE (mesutcang) said :


You can use expand command for this. Such as

$expand --tabs=8 documentName

This command will replace all your tab characters with 8 space and write new content to console. If you want to use this content. You can use

$expand --tabs=8 documentName > newDocumentName

Revision history for this message
Curtis Hovey (sinzui) said :

Gedit's find and replace supports escaped characters: tab=\t newline=\n
Find: \t

Can you help with this problem?

Provide an answer of your own, or ask Ramakrishnan for more information if necessary.

To post a message you must log in.