I am a newbie to Unix and sed so although I saw some posts that were similar to what I'm having problems with I couldn't get the suggestions to work with my problem.
I am modifying a previously built .prog that has a sed command in it that builds an ftp command when the .prog is ran. My problem is my ftp is different than the previous one. The previous ftp was hitting a website to pull information. I am looking to grab the information from a directory on a neighboring server.
I am getting a sed: -e expression #1, char 12: Extra characters after command error
below is my code where it would be Server:\FolderB in windows.
sed -e 's/hq-ftp1\\\\Server\\\\FolderA\\\\/g' \
-e "s~<USERID>~$ftp_user~g" \
-e "s~<PASSWD>~$ftp_user_pass~g" \
-e "s~<INFILE>~$input_filename~g" \
-e "~<FILEDIR>~Lease~g" \
-e "/<OUTFILE>/$new_file/g" < $XXHH_TOP/bin/sftp_get.exp.template > $APPLPTMP/$sftp_get_file
Thanks!
I am modifying a previously built .prog that has a sed command in it that builds an ftp command when the .prog is ran. My problem is my ftp is different than the previous one. The previous ftp was hitting a website to pull information. I am looking to grab the information from a directory on a neighboring server.
I am getting a sed: -e expression #1, char 12: Extra characters after command error
below is my code where it would be Server:\FolderB in windows.
sed -e 's/hq-ftp1\\\\Server\\\\FolderA\\\\/g' \
-e "s~<USERID>~$ftp_user~g" \
-e "s~<PASSWD>~$ftp_user_pass~g" \
-e "s~<INFILE>~$input_filename~g" \
-e "~<FILEDIR>~Lease~g" \
-e "/<OUTFILE>/$new_file/g" < $XXHH_TOP/bin/sftp_get.exp.template > $APPLPTMP/$sftp_get_file
Thanks!