Faciliate the work for lftp ('all' is needed if you wanna use it with getopts, otherwise its enough with the lftp line)

all="$(echo -e $*|awk '{for(i=3;i<=NF;++i)print $i}'|xargs)"; lftp -e open <HOSTNAME> -p <PORT> -u <USER>:<PASSWORD> -e "$all;exit"
Add this to a script and you can do ./scriptname site help or ./scriptname mput etc etc.

By: wuziduzi
2019-07-28 18:48:28

What Others Think

It is really easy for me to get all the notes from the page relating to the code that you are sharing. I hope that these are very helpful for all of you who are really interested with these kind of information. solar panel system for home
zaiyamariya · 60 weeks and 1 day ago
Hi! Writing essay papers and others types of assignments can be tight task for pupils of all academic levels. We can improve your writing skills by improving reading habit and also can improve writing skills by following your favorite writer with your basic knowledges. This great online web agency, that write for me essays, provides top-quality learners support, plagiarism free papers and guaranteed confidentiality of your assignments.
bojo2112jon · 59 weeks and 6 days ago
nice post http://www.google.com">see more
Alyssalauren · 52 weeks and 3 days ago
man ls
Alyssalauren · 52 weeks and 3 days ago
Wooooow! This is awesome guitar lessons fresno
aegyjingoo · 42 weeks ago
Basic! cryo facial baton rouge
geebranz · 36 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: