I am running the following command from a bash script:
comm -23 file1 file2 > file3
(file1
& file2
are de-duped and sorted first)
This produces a file3
that contains rows unique to file1
only (what I want).
When the script is run from the command line, there are no issues. However, when it is run from the crontab
, it produces a much larger (incorrect) file3
. The crontab
user is the same as the logged-in user when run manually.
Any clues as to what would cause such a discrepancy?
Thanks in advance