How to Use Here Document (HereDoc) in Linux Shell Script

Posted by linuxtldr on Nov 27, 2025 4:33 PM EDT
Linux TLDR; By David
Mail this story
Print this story

In Bash and also for other implementations of the shell, like zsh and fish, you can use the HereDoc to redirect a multi-line or block of lines from the script as an input to interactive commands.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.