Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

heredoc remove leading space tabs linux bash


You can change the here-doc operator to <<-. You can then indent both the here-doc and the delimiter with tabs:

#! /bin/bash
cat <<-EOF
    indented
    EOF
echo Done
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #heredoc #remove #leading #space #tabs #linux #bash
ADD COMMENT
Topic
Name
5+6 =