James B. Byrne wrote:
cat file4 | xargs mv /var/spool/mqueue/'{}' \ /var/spool/mqueue/offline
To provide an alternate way (thanks Dag, learned a new xargs switch :) ) I would instintively write this bash command as:
while read filename && [[ "$filename" != end ]] do mv -f "/var/spool/mqueue/$filename" /var/spool/mqueue/offline/ done < "/path/to/file4"
hth, -te