Something
public text v1 · immutablegerman@Debian:~$ type chan
chan is a function
chan ()
{
if [ -z $1 ]; then
play /usr/share/sounds/chan.mp3 >&/dev/null;
else
for ((i=0; i<$1; i++))
do
play /usr/share/sounds/chan.mp3 >&/dev/null;
done;
fi
}
german@Debian:~$