Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
101914
on Dec 18, 2015
|
parent
|
context
|
favorite
| on:
Rich’s sh (Posix shell) tricks
For shells that lack echo -e and printf (yes, there are such shells; at least, I use one):
echoe(){ local a=${#1}; echo $1 |dd bs=1 count=$a;}
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: