This is part of a SFTP file transfer. Here are the steps:Check files with .csv extension and get them to the local directory.After that, move them to the another folder in the remote connection.Tried using the rename command but it throws an error FailureTried using -b batch-file option with sftp but looks like rename command needs a specific file-name instead of a set of files.So how do I achieve this ? 
renaming files in SFTP session
rename;sftp