LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How can I use Shell script to edit a data at a particular location in a txt file? (https://www.linuxquestions.org/questions/programming-9/how-can-i-use-shell-script-to-edit-a-data-at-a-particular-location-in-a-txt-file-775490/)

leena_d 02-08-2010 12:43 AM

I've got the answer :)

Following script worked...

#!/bin/ksh
REM_USER="Username"
REM_PASS="PASSWORD"
REM_HOST="host.name"
echo "Please Enter the File Name"
read FILE_NAME

ftp -nv <<EOF
open $REM_HOST
user $REM_USER $REM_PASS
cd /abc/My_Dir
mput $FILE_NAME
EOF


All times are GMT -5. The time now is 09:04 PM.