![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help in replacing spaces in a file | sais | Shell Programming and Scripting | 7 | 10-06-2008 10:24 AM |
| Replacing leading zeros with leading spaces | deepakwins | UNIX for Dummies Questions & Answers | 5 | 06-18-2008 03:06 AM |
| replacing tabs to spaces from files | rishir | Shell Programming and Scripting | 6 | 12-15-2005 01:12 PM |
| finding & replacing blank rows/spaces in a file | Gerry405 | SUN Solaris | 2 | 07-21-2005 05:49 AM |
| Strip leading and trailing spaces only in a shell variable with embedded spaces | jerardfjay | Shell Programming and Scripting | 6 | 03-07-2005 02:24 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Replacing the Spaces
Hi,
i have a tab dilimeted file.The records are :header is having column names.I am facing the following issue : I want to convert the spaces only for header file into "_" in the unix shell but the problem is that if i use sed command all the blank spaces are getting replaced by "_". For example:head -1 samlpe.txt EMP ID EMP NAME EMP DETAIL EMP CONTACT EMP LOCATION Want to Convert into EMP_ID EMP_NAME EMP_DETAIL EMP_CONTACT EMP_LOCATION Can anybody help regarding this? Thanks in Advance! |
![]() |
| Bookmarks |
| Tags |
| perl regex |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|