Cute input redirection: bash vs. zsh


I ran into this answering a StackOverflow question about the best way to append 1 file to another.

This method seemed cute, though I doubt I’d ever use something that hard to read:

>> a < b

The < dumps the contents of b to STDIN, and the >> should append STDIN to a, effectively appending b to a.

In bash, this doesn’t seem to work. But in zsh, it does.

Related Posts

How to Disable Disqus Ads on your Blog

Derivation of Reservoir Sampling

Fun with Python Iterators: Linked Lists Made Easy

Notes for November 11, 2018

Underrated Vim Option: undofile and undodir

Hot Take on Solo Travel: Starve

Alan Perlis

Book Notes: The Map of My Life by Goro Shimura

Prague

Way to remember the definition of local finiteness