Previous: Commands for avatarsay, Up: Using avatarsay


3.7 Pipes

You don't always have to write static texts to use AKFAvatar. You can use the command avatarsay also to show you the output of other commands. Therefore you can use a single hyphen (-, U+002D) as option.

It is best to try these features in a window based environment, where you have one window for your command line and avatarsay opens up in a separate window.

So try this: ‘echo "Hey pal, what's GNU?" | avatarsay -’. The gnu appears and says that words. Be careful with using the exclamation mark though, some shells have problems with that.

You can also see the output of any other command with avatarsay. For example try this: ‘df | avatarsay -’, or this: ‘dir | avatarsay -’. You could even read this manual this way: ‘makeinfo --plaintext akfavatar.texinfo | avatarsay -’, although that's probably a bit too long.