Hello,
I'm on a mac trying to have the follow cmd list the files after touch, but very unsuccessful. Please can you help.
sort $BOTHFILE | uniq -u | xargs -I {} -t touch {} >> $LOGFILE ;
BOTHFile contents in form of
/directory/file.txt
thanx
Hello,
I'm on a mac trying to have the follow cmd list the files after touch, but very unsuccessful. Please can you help.
sort $BOTHFILE | uniq -u | xargs -I {} -t touch {} >> $LOGFILE ;
BOTHFile contents in form of
/directory/file.txt
thanx
sort -u $BOTHFILE | xargs -I {} -t touch {} >> $LOGFILE 2>&1
Jean-Pierre.
xargs -t (trace mode) writes to stderr (2), not stdout (1), so Jean-Pierre redirected.
Thanks heaps aigles, and jim mcnamara for explaining why.
Much appreciated.