I'd like to create a simple script, something like that:
Code:
vim $1
lftp -c 'open -e "put $1" sycamorex@192.168.1.102:/data/notes/'
But lftp doesn't see $1 as a variable and treats it literally:
Code:
put: /home/xtd8865/notes/autoup/$1: No such file or directory
If I replace 'put $1' with a file name in this directory, everything works.
any hints
thanks