dave leonard daveleonard69@yahoo.com [sed-users]
2017-09-08 15:20:41 UTC
Hello,
Below are 4 one liners which when executed produce simple star designs.
1) echo  "*" | sed  ':a  p;  s/.\{15\}//;  s/$/*/;  ba; '
2) echo  "*" | sed  ':a  s/^$/***************/;  p;  s/.$//;  ba;'
3) echo  "***************"   |  sed ':a  p;  s/\*/ /;  /^ *$/s/ /*/g;  ba;'
4) echo  "***************"   |  sed ':a  p;  /^\**$/s/./ /g;  s/^\( *\) /\1*/;  ba;'Â
ThanksDave
[Non-text portions of this message have been removed]
Below are 4 one liners which when executed produce simple star designs.
1) echo  "*" | sed  ':a  p;  s/.\{15\}//;  s/$/*/;  ba; '
2) echo  "*" | sed  ':a  s/^$/***************/;  p;  s/.$//;  ba;'
3) echo  "***************"   |  sed ':a  p;  s/\*/ /;  /^ *$/s/ /*/g;  ba;'
4) echo  "***************"   |  sed ':a  p;  /^\**$/s/./ /g;  s/^\( *\) /\1*/;  ba;'Â
ThanksDave
[Non-text portions of this message have been removed]