I'm writing a script that transfers files that are periodically added to a remote server. To do this I'd like to pull ls output from the remote server, then check it against a list of files that have already been downloaded.
I had a difficult time figuring out how to redirect the output from ls to a local file. I cam across this question, and found that
ls . localfile works.
I've never come across the
. operator for output redirection. How is it related to