#!/bin/sh echo 'Paste text, use <ctrl>+D to indicate the end of the text' variable=$(cat) echo "$variable"