|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to remove ^I character from a UNIX file ?
Hi
When i used :set list in vi , i have seen a lot ^I characters in my file. Could anyone please help me how to remove this characters ? Issue : When i used awk to combine two file (one of the file has ^I characters) then my output is different than what am expecting, one of column being truncated. Any help is much appreciated |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
They're tab characters. Without seeing any of your code I can't say how you might otherwise get around your problem, or why it's even causing a problem, or whether removing them or replacing them would help.
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
^I is the <TAB> character, separating fields in your file. You cann deal with it from within awk, e.g. by setting <TAB> as the field separator or by removing it when working on a line. You can enter it using "\t" in most awk implementations.
|
| Sponsored Links | ||
|
![]() |
| Tags |
| control i, special characters, ^i |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove ^L character from a file | skhichi | Shell Programming and Scripting | 9 | 06-22-2012 10:07 AM |
| Remove tab character from file | figaro | UNIX for Dummies Questions & Answers | 4 | 01-21-2012 01:03 PM |
| How to remove the ^@ character in a file. | machomaddy | Shell Programming and Scripting | 6 | 01-03-2012 11:26 PM |
| How to remove first 2 character from file name | atul9806 | Shell Programming and Scripting | 8 | 06-14-2011 08:21 AM |
| How to remove new line character and append new line character in a file? | sasikari | HP-UX | 8 | 10-27-2010 06:09 PM |
|
|