mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2025-07-25 01:28:51 +00:00
Create heredoc.sh
Here Documents in Shell SCripting Example
This commit is contained in:
17
heredoc.sh
Normal file
17
heredoc.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
#Purpose: Here Document Example
|
||||
#Version:1.0
|
||||
#Created Date: Tue Jun 12 22:50:23 IST 2018
|
||||
#Modified Date:
|
||||
#WebSite: https://arkit.co.in
|
||||
#Author: Ankam Ravi Kumar
|
||||
# START #
|
||||
ftp -n <<- EOF 2> /dev/null
|
||||
open ftp.server.com
|
||||
user ftp ftp
|
||||
ascii
|
||||
cd uploadfolder
|
||||
mput file1 file1 file2
|
||||
bye
|
||||
EOF
|
||||
|
Reference in New Issue
Block a user