Skip to content

Instantly share code, notes, and snippets.

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
> cp `ls -t ~/Downloads | head -1` workfile.csv

This comment has been minimized.

Copy link
Owner Author

@rondinif rondinif commented May 23, 2014

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

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