![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can i read a file character by character | karnan | Shell Programming and Scripting | 6 | 05-18-2008 11:22 PM |
| bash while read how to remove \n character | papasj | Shell Programming and Scripting | 2 | 02-24-2008 08:01 AM |
| Read First Character of Each Line in File | azelinsk | Shell Programming and Scripting | 7 | 07-11-2007 05:15 PM |
| Can I read a file character by character? | murtaza | Shell Programming and Scripting | 3 | 03-29-2007 08:19 AM |
| need to read 3° character from a text file | piltrafa | UNIX for Dummies Questions & Answers | 15 | 07-26-2005 07:19 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
read a variable character by character, substitute characters with something else
im having trouble doing this:
i have a variable with 2 characters repeating e.g. aababbbaaaababaabbaabbba is there a way i can search the variable for a's and b's and then change a's to b's and b's to a's? im guessing its like getting the 1's compliment of the string im doing this in BASH, and ive looked into seeing if sed or awk could help but i got nothing any help would be greatly appreciated thanks |
| Forum Sponsor | ||
|
|