bash - How to automatically move a fully downloaded file to a new directory -


i using wget download files group of files ingested in program. know can use "-p" send file tmp directory, unsure best method move file needed destination once downloaded. rsync best way move files or method preferred using scripting?

if intend move file if download done make move or if not downloaded no need of move, can use "logical and" between commands of wget , mv

wget http://mysite.example.com/file1.tgz && mv file1.tgz /new_dest/ 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -