Y
Hacker News
new
|
ask
|
show
|
jobs
by
pwdisswordfish2
2167 days ago
x=$(command -v $0 2>/dev/null) sed -rn 's/^### ?//;T;p' $x
Personally I would not use the author's chosen sed commands.
exec sed -n '/^###/p' $x
would work fine.