Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Come ottenere il nome dell'ultimo file scaricato, come copiare l'ultimo file scaricato in file di lavoro temporaneo.
> ls -t ~/Downloads | head -1
LISTA_MOVIMENTI_20140330101644484.csv
> cp `ls -t ~/Downloads | head -1` workfile.csv
@rondinif

This comment has been minimized.

Copy link
Owner Author

rondinif commented May 23, 2014

Compare the content of a baseline file with the content of the last downloaded file:

baseline=/path/to/the/baseline 
lastdwnld=~/Downloads/`ls -t ~/Downloads | head -1`
diff $baseline $lastdwnld 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.