Skip to content

Commit c75b626

Browse files
author
Ankam Ravi Kumar
authored
Create heredoc.sh
Here Documents in Shell SCripting Example
1 parent 77aaae5 commit c75b626

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

heredoc.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
#Purpose: Here Document Example
3+
#Version:1.0
4+
#Created Date: Tue Jun 12 22:50:23 IST 2018
5+
#Modified Date:
6+
#WebSite: https://arkit.co.in
7+
#Author: Ankam Ravi Kumar
8+
# START #
9+
ftp -n <<- EOF 2> /dev/null
10+
open ftp.server.com
11+
user ftp ftp
12+
ascii
13+
cd uploadfolder
14+
mput file1 file1 file2
15+
bye
16+
EOF
17+

0 commit comments

Comments
 (0)