![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| read in a file character by character - replace any unknown ASCII characters with spa | raghav525 | Shell Programming and Scripting | 1 | 04-20-2009 02:52 PM |
| check for a particular character inside a file and substitute with a given character? | karthikprasathk | AIX | 1 | 07-01-2008 04:29 AM |
| read a variable character by character, substitute characters with something else | vipervenom25 | UNIX for Dummies Questions & Answers | 2 | 06-06-2008 04:18 PM |
| /var/cache deletion. | mjdousti | UNIX for Advanced & Expert Users | 1 | 05-01-2008 01:36 PM |
| Account Deletion... | spaceshiporion | Post Here to Contact Site Administrators and Moderators | 2 | 06-24-2005 08:36 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Deletion of a particular character
How to delete a particular character in a file and then removing the spaces created by that removal.I am working with a text file containing nucleotide sequences.
I have tried sed command but it replaces N with spaces. example:I want to delete all the N without creating a space after its removal Input: acgtaccctttaaNNNNNNNNNNccta acaattaNNNacatactgatgactctaa acatcagtcagtaacgtgtactgatacga Output: acgtaccctttaacctaacaattaacata ctgatgactctaaacatcagtcagtaacg tgtactgatacga ankita |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|