How can I check if a file is newer that the target file?
In a shell script, intended to run on a Mac, I want to do something like this:
#!/bin/bash if [ $SourceFile dateisgreater $TargetFile ] then echo "SourceFile is newer that Targetfile" fi
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community