On 05/09/2010 05:09 PM, Leif Hedstrom wrote:

Maybe do the next to lines "conditional" on diff between $f and $f.tmp
actually finding a change being made? Extremely minor though, and in
reality, if there is no change, the "mv" would be harmless anyways.


Sure. Something like
if [ `grep -e '[[:space:]]$' $f 2>/dev/null | wc -l` -gt 0 ]; then
  ...
fi

would make sure we don't change the file timestamps
for correctly formatted files.


+1, just create a Jira ticket and commit against that for this change.


OK. Will do


Regards
--
^TM

Reply via email to