How to shutter the "#" characters in line to one "#" char by sed? -


How to shell a "#" character by "#" characters?

From:

Ultimate = ## ###FF ##E## 44

From:

Ultimate = # # One way to use extended regexps:

 

wink @ parrot: ~ $ echo "## ### ff ## e ## 44" | Regularly with regexps:
  winko @ parrots: ~ $ echo "/" # $ # " 

## ###ff ## E ## 44 "| Sed -es / ## * / # / g # # ff # e # 44

Only after the equal sign:

  vinko @ parrot: ~ $ Echo "supreme = ## ### ff ## e ## 44" | Sed s / = ## * / = # / g param = # ### ff ## e ## 44  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -