![]() |
|
|
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 |
| Add white space to the end of a line with sed | karlanderson | Shell Programming and Scripting | 7 | 03-09-2009 06:20 AM |
| Padding With White Space Between Variables | sandeep_1105 | UNIX for Dummies Questions & Answers | 1 | 02-26-2009 09:33 PM |
| stripping white space... | Zak | Shell Programming and Scripting | 7 | 10-09-2007 08:41 AM |
| How to get just the word and clean the white space? | paulofp | Shell Programming and Scripting | 2 | 06-22-2007 07:28 PM |
| How to keep white space is being deleted using read | keelba | Shell Programming and Scripting | 1 | 05-30-2002 03:15 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
SED with White Space
Dear Members,
Suppose i have a variable test which stores a string as below: test='John drives+++++++++a+++++car' now i want to use sed on the above variable and replace + with a white space, so that i get echo $test should give me 'john drives a car' Between "drives" and "a" i need 9 white spaces and between "a" and "car" i need 5 white spaces since i have 9 and 5 positive signs before. How can i do this? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|