Reader and writer in Bash.