[bash] updated notes function