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

Asked by Ramakrishnan on 2012-08-09

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Last query:
2012-08-09
Last reply:
2012-08-09
Mesut Can GÜRLE (mesutcang) said : #1

Hello,

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

Curtis Hovey (sinzui) said : #2

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.