[bash] add while sample
[bash] until sample
[bash] function sample