Command to rename sFTP file with date/time stamp
Tried Command: mv ! $(echo "!" | sed "s/\..*$//").$(date '+%Y-%m-%d_%H-%M').$(echo ! | awk -F"." '{ print $NF }')
Get error:
Error listing directory 's/\..*$//' .
No such file or directory.
Error code: 2
Error message from server (en): invalid path
Request code: 11
Please advise what 's/\..*$//' should be? Can above command be used on sFTP server?
Get error:
Error listing directory 's/\..*$//' .
No such file or directory.
Error code: 2
Error message from server (en): invalid path
Request code: 11
Please advise what 's/\..*$//' should be? Can above command be used on sFTP server?